Thread: Detecting HTML?
View Single Post
  #12  
Old 06-02-2006, 02:11 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Omini
So if you were able to combine the player.platform to see if they're on Windows, then check if HTML is enabled?

ie
NPC Code:
if (player.platform == "win") {
if (htmlenabled) {
sendpm <b>Welcome to the server!</b>;
} else {
sendpm Welcome to the server!;
}
} else {
sendpm Welcome to the server!;
}



Unless you can simplify it some more, which I'm sure is possible.
PHP Code:
if(htmlenabled && player.platform == "win") {
  
// ..
} else {
 
// ..

probably
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote