Only giving weapons to ID 0
#1

I've been having problems with spawning weapons and this is the latest. Just as I thought everything was working, my friend logged on and it didn't give him weapons. Eventually we figured out that only ID 0 was getting weapons. Can anyone help me?

Code:

OnPlayerSpawn I have this:

pawn Код:
if(PlayerInfo[playerid][New] == 0)
        {
            SetTimer("newweapons", 1000, false);
            PlayerInfo[playerid][New] = 1;
        }

and at the timer the code is:

pawn Код:
public newweapons(playerid)
{
    if (gTeam[playerid] == TEAM_LSPD)
    {
        GivePlayerWeapon(playerid, 29, 500);
        GivePlayerWeapon(playerid, 22, 9999);
    }
    else
    {
        GivePlayerWeapon(playerid, 28, 1000);
        GivePlayerWeapon(playerid, 22, 9999);
    }
    return 1;
}
Reply


Messages In This Thread
Only giving weapons to ID 0 - by cloudysky - 10.07.2011, 19:10
Re: Only giving weapons to ID 0 - by Libra_PL - 10.07.2011, 19:14
Re: Only giving weapons to ID 0 - by cloudysky - 10.07.2011, 19:17
Re: Only giving weapons to ID 0 - by cloudysky - 10.07.2011, 19:22
Re: Only giving weapons to ID 0 - by Skylar Paul - 10.07.2011, 19:51

Forum Jump:


Users browsing this thread: 3 Guest(s)