07.09.2015, 21:23
Eae galera, como o titulo jб fala, como o player nгo perder as armas ao morrer?
new playerWeaponData[MAX_PLAYERS][13][2];
public OnPlayerConnect(playerid) {
new array[13][2];
playerWeaponData[playerid] = array;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
for(new index = 0; index < 13; ++index) {
GetPlayerWeaponData(playerid, index,
playerWeaponData[playerid][index][0],
playerWeaponData[playerid][index][1]
);
}
return 1;
}
public OnPlayerSpawn(playerid)
{
for(new index = 0; index < 13; ++index) {
GivePlayerWeapon(playerid,
playerWeaponData[playerid][index][0],
playerWeaponData[playerid][index][1]
);
}
return 1;
}