19.01.2013, 21:53
Hello,
Recently i have a issue. When i get killed on the server i get freezed. I tried to fix it but it doesn't work.
I would like to rep+ the person who helped me.
Thanks
Paco
Recently i have a issue. When i get killed on the server i get freezed. I tried to fix it but it doesn't work.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPVarInt(playerid, "Headshotted") == 1)
{
SetPVarInt(playerid, "Headshotted", 0);
GameTextForPlayer(playerid, "~y~Head~r~shot", 3000, 3);
GameTextForPlayer(killerid, "~g~Head~w~shot", 3000, 3);
}
pInfo[playerid][pDeaths]++;
pInfo[killerid][pKills]++;
pInfo[playerid][pDuty] = 0;
pInfo[playerid][pGod] = 0;
SetPlayerArmour(playerid, 0.00);
SetPlayerHealth(playerid, 0.00);
if(GetPVarInt(playerid, "OldSkin"))
SetPlayerSkin(playerid, GetPVarInt(playerid, "OldSkin"));
SendDeathMessage(killerid, playerid, reason);
GivePlayerMoney(killerid, 500000);
SetPlayerScore(killerid, GetPlayerScore(playerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
return 1;
}
Thanks
Paco