[HELP] SetSpawnInfo without loosing weapons
#2

On top:
PHP код:
new weapons[MAX_PLAYERS][13][3]; 
On OnPlayerDeath
PHP код:
for(new i=0i<13;i++)
{
    
GetPlayerWeaponData(playeridiweapons[playerid][i][0], weapons[playerid][i][1]);

And in OnPlayerSpawn
PHP код:
for(new i=0;i<13;i++)
{
    
GivePlayerWeapon(playeridweapons[playerid][i][0], weapons[playerid][i][1]);

I think this should do it.
Reply


Messages In This Thread
[HELP] SetSpawnInfo without loosing weapons - by GianYagami - 15.01.2015, 11:40
Re: [HELP] SetSpawnInfo without loosing weapons - by ATGOggy - 15.01.2015, 12:00
Re: [HELP] SetSpawnInfo without loosing weapons - by GianYagami - 24.09.2017, 08:05

Forum Jump:


Users browsing this thread: 1 Guest(s)