19.07.2011, 20:53
is there any way to disable suicide so you cant kill your self with ex: RPG, heatsink, grenades, molotow? but be able if you sitting in a vehicle?
new Suicide[MAX_PLAYERS];
public OnPlayerDeath(playerid,killerid,reason);
{
if(playerid == killerid)
{
new Float:Pos[3];
Suicide[playerid] = true;
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
SetSpawnInfo(playerid, team, skin,Pos[0],Pos[1],Pos[2], Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
public OnPlayerSpawn(playerid)
{
if(Suicide[playerid] == true)
{
Suicide[playerid] = false;
SpawnPlayer(playerid);