View Single Post
  #9  
Old 12-30-2003, 10:21 PM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Quote:
Originally posted by osrs

NPC Code:


if(playerchats){
if(strequals(#c,/red)) color = {0.5,0,0,0.5};
elseif(strequals(#c,/green)) color = {0,0.5,0,0.5};
elseif(strequals(#c,/blue)) color = {0,0,0.5,0.5};
elseif(strequals(#c,/alpha)) color = {0.5,0.5,0.5,0.5};
}

Why do people do those "elseif"s in this situation?
I KNOW for a fact "if" by itself would work fine, i was just wondering if there's acutally a viable reason for doing this...
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote