27.09.2010, 15:52
[QUOTE=Mauzen;852690]https://sampwiki.blast.hk/wiki/GetPlayerSkin
Use this in an if condition just after your command if condition:
The error.
Use this in an if condition just after your command if condition:
pawn Код:
if(strcmp(...)) //Your oygate command
{
if(GetPlayerSkin(playerid) != the_skin_id_that_is_allowed_to_open) return 1; //ends the command here
//your further normal gate code
...
}
Код:
What i wrote: [quote] if(strcmp(cmdtext, "/Pgopen", true) == 0) { if(GetPlayerSkin(playerid) != 24) return 1; //ends the command here new string[50]; new movetime = MoveObject(gate, -224.91983032,929.99670410,-8.98811340,5); format(string, sizeof(string), "Prison Gates Are Opening", movetime); SendClientMessage(playerid, 0xFF000000, string); return 1; }
Код:
C:\Users\Alle\Desktop\GTA SA Shit\GTA Server\gamemodes\EQ-RP.pwn(542) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.