if(!strcmp(cmdtext,"/openall",true)) { if(GetPlayerSkin(playerid) == 285) if(GetPlayerSkin(playerid) == 267) if(GetPlayerSkin(playerid) == 280) if(GetPlayerSkin(playerid) == 281) if(GetPlayerSkin(playerid) == 282) if(GetPlayerSkin(playerid) == 283) if(GetPlayerSkin(playerid) == 284) if(GetPlayerSkin(playerid) == 286) if(GetPlayerSkin(playerid) == 288) MoveObject(MassenZelle, 3612.190918, -1683.627075, 4.788385, 9); if(GetPlayerSkin(playerid) == 285) if(GetPlayerSkin(playerid) == 267) if(GetPlayerSkin(playerid) == 280) if(GetPlayerSkin(playerid) == 281) if(GetPlayerSkin(playerid) == 282) if(GetPlayerSkin(playerid) == 283) if(GetPlayerSkin(playerid) == 284) if(GetPlayerSkin(playerid) == 286) if(GetPlayerSkin(playerid) == 288) MoveObject(AlleZellen, 3624.138672, -1672.828125, 8.700000, 9); return 1; }
Originally Posted by RobShakur
i can script but that no
|
if (!strcmp("/healing",cmdtext,true)) { new copskin = GetPlayerSkin(playerid); if( (copskin == 287) || (copskin == 163) || (copskin == 282) || (copskin == 255) || (copskin == 165)) { SendClientMessage(playerid, 0x0000FF96, "== You are a cop."); SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid,100); } else { SendClientMessage(playerid, 0xFFFF00AA, "== You are not a cop!."); } }
Originally Posted by boelie
There are more and better ways but here is an example;
Код:
if (!strcmp("/healing",cmdtext,true)) { new copskin = GetPlayerSkin(playerid); if( (copskin == 287) || (copskin == 163) || (copskin == 282) || (copskin == 255) || (copskin == 165)) { SendClientMessage(playerid, 0x0000FF96, "== You are a cop."); SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid,100); } else { SendClientMessage(playerid, 0xFFFF00AA, "== You are not a cop!."); } } |
You dont need all the ( and ), Only some, |
if(GetPlayerSkin == SKINID || GetPlayerSkin == SKINID || GetPlayerSkin == SKINID || GetPlayerSkin == SKINID)