10.04.2010, 19:48
There are more and better ways but here is an example;
Replace setplayerhealth and gviegplayerarmour with your moveobject stuff
Код:
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!."); } }