06.01.2010, 15:34
I'm converting police gate commands from one filterscript to the gamemode script.. This is what i done
But even when i am a cop it says "Your not a cop" does anyone know where i went wrong?
Код:
if (strcmp(cmdtext, "/1close", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
MoveObject(gates[4], 246.750320,72.625373,1003.791320,1);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Your not a cop.");
}
}
return 1;
}

