01.12.2009, 15:43
Hi, i make this cmd that police, fbi and national guard can open gate at ls airport, but when somebody from that teams type /lso or /lsc he get message YOU ARE NOT COP!
Here is code, i try to fix it but i cant :S
help to fix this please
Here is code, i try to fix it but i cant :S
Код:
if (strcmp(cmdtext, "/lso", true)==0)
{
if(PlayerInfo[playerid][pTeam] == 1 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pTeam] == 3)
{
MoveObject(lsgate,1950.097,-2189.796,15.320, 8.0);
SendClientMessage(playerid, COLOR_GREEN, "GATE OPEN.");
}
else return SendClientMessage(playerid, COLOR_GREEN, "YOU ARE NOT PD.");
}
if (strcmp(cmdtext, "/lsc", true)==0)
{
if(PlayerInfo[playerid][pTeam] == 1 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pTeam] == 3)
{
MoveObject(lsgate,1961.690,-2189.593,15.320, 8.0);
SendClientMessage(playerid, COLOR_GREEN, "GATE CLOSE.");
}
else return SendClientMessage(playerid, COLOR_GREEN, "YOU ARE NOT PD.");
}

