20.11.2010, 02:11
Okay,
So I haev ac ommand that sets the Team which allows me to open the Gate(s).
The command works fine but the Gate Commands do not work.
I have checked the co ords, I do use a timer to close the Gates. Here is the commands.
Any help is appreciated
So I haev ac ommand that sets the Team which allows me to open the Gate(s).
The command works fine but the Gate Commands do not work.
I have checked the co ords, I do use a timer to close the Gates. Here is the commands.
pawn Код:
if(strcmp(cmdtext,"/ap") == 0)
{
if(PlayerTeam[playerid] == Team_Fire || PlayerTeam[playerid] == Team_LVPD || PlayerTeam[playerid] == Team_EMS)
{
MoveObject(AirportGate,2114.857421875,2841.505859375,12.5,10);
}
return 1;
}
if(strcmp(cmdtext,"/fd") == 0)
{
if(PlayerTeam[playerid] == Team_Fire)
{
SendClientMessage(playerid,COLOR_YELLOW,"[INFO]: Fire Dept Gate Opening!");
MoveObject(FireGate,2526.25,683.5712890625,11.495002746582,10);
}
return 1;
}