01.02.2009, 20:33
Hey hey!... [SAP]Sidhu here. I'm just making a GM and I'm stuck at one point. I want to make a command useable by ALL Police Teams, not just 1. How would I do this?.. Below is the code I have so far.
So like, 1 class is LSPD-Cops, and I want the other to be LSPD-Cop2 and SFPD-Cop
So like, 1 class is LSPD-Cops, and I want the other to be LSPD-Cop2 and SFPD-Cop
pawn Code:
if (strcmp(cmdtext, "/sfpdo", true)==0)
{
if(gTeam[playerid] == TEAM_LSPD-Cop)
{
MoveObject (sfpdgate,-1572.187622, 670.214355, 9.742842,2);
MoveObject (sfpdgate2,-1701.508301, 692.963318, 27.385559,2);
SendClientMessage(playerid, COLOR_GREEN, "The SFPD Gates Are Open!");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not apart of the Police!");
}
return 1;
}