More Than 1 Team
#1

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

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;
    }
Reply


Messages In This Thread
More Than 1 Team - by sidhu123 - 01.02.2009, 20:33
Re: More Than 1 Team - by Shadowww - 01.02.2009, 20:47
Re: More Than 1 Team - by sidhu123 - 01.02.2009, 20:53

Forum Jump:


Users browsing this thread: 2 Guest(s)