30.03.2013, 12:06
hello everyone i made a cmd under onplayerdeath that when a player is killed his death increases and when he gets killed by an admin that admins 5 score is increased but it wont work please help me
Код:
public OnPlayerDeath(playerid, killerid, reason) { gPlayerInfo[playerid][Deaths]++; if(IsPlayerConnected(killerid)) { gPlayerInfo[killerid][Kills]++; } if(gPlayerInfo[killerid][Level] >= 1) { new score; score = GetPlayerScore(killerid); SetPlayerScore(killerid, score+5); } return 1; }