05.06.2018, 01:25
How would I do it? in onplayerdeath...
I've tried with this:
but nothing
I've tried with this:
Код:
public OnPlayerDeath(playerid, killerid, reason){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ //this DateM[killerid][cKills] += 1; DateM[playerid][cDeaths] += 1;} if(killerid != INVALID_PLAYER_ID){ DateM[killerid][cKills]+= 1; switch(DateM[killerid][cKills]){ case 2:{ //2 kills DateM[killerid][cLevel]++; SetPlayerScore(killerid, (GetPlayerScore(killerid)+ DateM[killerid][cLevel]));} } } return 1;}
