17.03.2017, 23:29
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID) return 1;
SendDeathMessage(killerid,playerid,reason);
//-----------------------------------------
new string[256];
KillingSpree[killerid] ++;
KillingSpree[playerid] = 0;
kills[playerid]=0;//nuevo
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
format(string,sizeof(string), "~n~~w~HAS SIDO ASESINADO POR~n~~r~%s", Nombre(killerid));
GameTextForPlayer(playerid,string,2000,3);
format(string,sizeof(string),">> Recibido +1 score y +$200 por matar a '%s', Asesinatos seguidos: %d",Nombre(playerid), KillingSpree[killerid]);
SendClientMessage(killerid,0x00FF00FF,string);
GivePlayerCash(killerid,200);
//===================================================
if(KillingSpree[killerid] == 3)