[Ajuda] Erro ganhar Score quando mata
#3

Na gamemode scavenge and survive, por padrao ao matar nгo ganha Score!
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;
}

Pronto sу Substituir...
Reply


Messages In This Thread
Erro ganhar Score quando mata - by LukeCage - 20.11.2016, 12:15
Re: Erro ganhar Score quando mata - by Cleyson - 20.11.2016, 12:28
Re: Erro ganhar Score quando mata - by Carlos001 - 20.11.2016, 12:46
Carlos001 - by LukeCage - 20.11.2016, 13:23
Re: Erro ganhar Score quando mata - by PT - 20.11.2016, 14:50
PT - by LukeCage - 20.11.2016, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)