[Ajuda] Nгo perder armas ao morrer
#3

Para este caso, nгo й necessбrio manipular arquivos.

PHP код:
new playerWeaponData[MAX_PLAYERS][13][2];

public 
OnPlayerConnect(playerid) {
    new array[
13][2];
    
playerWeaponData[playerid] = array;
    return 
1;
}

public 
OnPlayerDeath(playeridkilleridreason
{
    for(new 
index 0index 13; ++index) {
        
GetPlayerWeaponData(playeridindex
            
playerWeaponData[playerid][index][0], 
            
playerWeaponData[playerid][index][1]
        );
    }
    return 
1;
}

public 
OnPlayerSpawn(playerid
{
    for(new 
index 0index 13; ++index) {
        
GivePlayerWeapon(playerid
            
playerWeaponData[playerid][index][0],
            
playerWeaponData[playerid][index][1]
        );
    }
    return 
1;

Reply


Messages In This Thread
Nгo perder armas ao morrer - by BartWhite - 07.09.2015, 21:23
Re: Nгo perder armas ao morrer - by [BOPE]Seu._.Madruga - 07.09.2015, 22:23
Re: Nгo perder armas ao morrer - by zPain - 07.09.2015, 22:26

Forum Jump:


Users browsing this thread: 2 Guest(s)