13.01.2011, 18:17
Hi. Can i do that only a special skin do certain things (actions) ? Sorry for my bad english.
if(!strcmp(cmdtext, "/need", true))
{
if(GetPlayerSkin(playerid) != 167) return false; // If player skin isn't 167, nothing happens ! | != means 'different'
else return // Else from that first condition, will return functions
return 1;
}
if(strcmp("/tor1o",cmdtext,true,10)==0) { if(GetPlayerSkin(playerid) != 280) return false; if(GetPlayerSkin(playerid) != 281) return false; if(GetPlayerSkin(playerid) != 282) return false; if(GetPlayerSkin(playerid) != 283) return false; if(GetPlayerSkin(playerid) != 284) return false; if(GetPlayerSkin(playerid) != 285) return false; if(GetPlayerSkin(playerid) != 286) return false; if(GetPlayerSkin(playerid) != 287) return false; if(GetPlayerSkin(playerid) != 288) return false; else return MoveObject(tGate,2294.1184082031, 2502.7514648438, 2.3897671699524,2.0); return 1; }
if(strcmp("/tor1o",cmdtext,true,10)==0) { if(GetPlayerSkin(playerid) >= 280 && GetPlayerSkin(playerid) <= 288) { MoveObject(tGate,2294.1184082031, 2502.7514648438, 2.3897671699524,2.0); return 1; } }