Setdisabled Weapons
#9

1st (lets call this one team cops) So at the top of your script put:

pawn Код:
new bool: COPS[MAX_PLAYERS];
And lets call the other team robbers

pawn Код:
new bool: ROBBERS[MAX_PLAYERS];
When they join the cop team add this to the code:

pawn Код:
COPS[playerid] = true;
and when they join robbers:
pawn Код:
ROBBERS[playerid] = true;
now that that stuff is added add this for when they enter the checkpoint:

pawn Код:
if(ROBBERS[playerid] == true)
    {
        ResetPlayerWeapons(playerid);
    }
    if(COPS[playerid] == true)
    {
        new string [128];
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "Welcome back to the PD officer %s", pName);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    }
That will probably work. Post back and see how it does.
Reply


Messages In This Thread
Setdisabled Weapons - by gtapolicemods - 07.11.2009, 00:59
Re: Setdisabled Weapons - by retart441 - 07.11.2009, 01:04
Re: Setdisabled Weapons - by gtapolicemods - 07.11.2009, 01:04
Re: Setdisabled Weapons - by retart441 - 07.11.2009, 01:35
Re: Setdisabled Weapons - by gtapolicemods - 07.11.2009, 01:38
Re: Setdisabled Weapons - by retart441 - 07.11.2009, 01:44
Re: Setdisabled Weapons - by gtapolicemods - 07.11.2009, 01:46
Re: Setdisabled Weapons - by retart441 - 07.11.2009, 01:54
Re: Setdisabled Weapons - by BP13 - 07.11.2009, 03:11
Re: Setdisabled Weapons - by gtapolicemods - 07.11.2009, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)