20.11.2016, 12:46
Na gamemode scavenge and survive, por padrao ao matar nгo ganha Score!
Pronto sу Substituir...
Quote:
public OnPlayerDeath(playerid, killerid, reason) { if(GetTickCountDifference(GetTickCount(), death_LastDeath[playerid]) < 1000) return -1; death_LastDeath[playerid] = GetTickCount(); if(killerid == INVALID_PLAYER_ID) { killerid = GetLastHitById(playerid); if(!IsPlayerConnected(killerid)) killerid = INVALID_PLAYER_ID; } _OnDeath(playerid, killerid); SetPlayerScore(killerid, GetPlayerScore(killerid)+1); return 1; } |