Hey guys. I have a script
Код:
{
case 0:
{
if(GetPlayerColor(playerid) == 0x2641FEAA || 0x33AA33AA)
SendClientMessage(playerid,LIGHTGREEN, "/arrest (playerid)");
SendClientMessage(playerid,LIGHTGREEN, "/suspect (playerid)");
SendClientMessage(playerid,LIGHTGREEN, "/ticket (playerid) (amount)");
SendClientMessage(playerid,LIGHTGREEN, "/pdgateopen");
SendClientMessage(playerid,LIGHTGREEN, "/pdgateclose");
SendClientMessage(playerid,LIGHTGREEN, "/pdliftup");
SendClientMessage(playerid,LIGHTGREEN, "/pdliftdown");
SendClientMessage(playerid,LIGHTGREEN, "/r (text)");
}
case 1:
{
if(GetPlayerColor(playerid) == 0x2641FEAA || 0x33AA33AA)
SendClientMessage(playerid,LIGHTGREEN, "/uaopen");
SendClientMessage(playerid,LIGHTGREEN, "/uaclose");
SendClientMessage(playerid,LIGHTGREEN, "/r (text)");
SendClientMessage(playerid,LIGHTGREEN, "/suspect (playerid)");
}
It says, You are not part of the UA or LSP. How to make this?
Код:
new Color = GetPlayerColor(playerid);
if(Color == 0x2641FEAA || Color == 0x33AA33AA) return SendClientMessage(playerid, COLOR, "You are not part of UA or LSP!");
works. Thanks