07.06.2008, 15:50
SafeKill(playerid);
Makes you spawn without losing weaponspawn Code:
stock SafeKill(playerid)
{
new Weapons[MAX_PLAYERS][11], Ammo[MAX_PLAYERS][11]; // news
for(new j=0; j<11; j++) GetPlayerWeaponData(playerid, j, Weapons[playerid][j], Ammo[playerid][j]);// loop through all weapon slots + ammo
SpawnPlayer(playerid); //respawn the player
for(new j=0; j<11; j++) GivePlayerWeapon(playerid, Weapons[playerid][j], Ammo[playerid][j]);// loop through all weapon slots + ammo
}