10.07.2011, 19:10
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:
and at the timer the code is:
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;
}