Function OnPlayerDeath(playerid, killerid, reason)
{
M_OnPlayerDeath(playerid,killerid,reason);
if(impb[playerid] == 1)
{
SetTimerEx("pbweiter", 4000, false, "i", playerid);
if(pbrang[playerid] == 1)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
}
if(pbrang[playerid] == 2)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 25, 500);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
}
return 1;
}
if(impb[killerid] == 1)
{
if(pbrang[killerid] == 1)
{
ResetPlayerWeapons(killerid);
pbrang[killerid] = 2;
GivePlayerWeapon(killerid, 25, 500);
GameTextForPlayer(killerid, "~r~>>>Waffenbeförderung<<<", 1000,4);
}
return 1;
}