Sziasztok. Nem tudom miért de nem hajt végre semmit ebbõl nem ad hozzá nem von el stb... Mi a probléma?
public OnPlayerDeath(playerid, killerid, reason)
{
if (PlayerInfo[playerid][pSilver] == 0)
{
if(killerid != INVALID_PLAYER_ID) GivePlayerMoney(killerid,5000);
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
PlayerInfo[killerid][pKill] += 1;
GivePlayerMoney(playerid,-5000);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
PlayerInfo[playerid][pDeath] += 1;
}
else
{
if(killerid != INVALID_PLAYER_ID) GivePlayerMoney(killerid,5000);
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
PlayerInfo[killerid][pKill] += 1;
GivePlayerMoney(playerid,-5000);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
PlayerInfo[playerid][pDeath] += 1;
}
return 1;
}