27.01.2012, 01:14
Код:
new Matou[MAX_PLAYERS]; new Morreu[MAX_PLAYERS];
Quote:
public OnPlayerDeath(playerid, killerid, reason) { Matou[killerid] += 1; Morreu[playerid] += 1; if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); SendDeathMessage(killerid, playerid, reason); return 1; } |
Quote:
public OnPlayerClickPlayer(playerid,clickedplayerid,sourc e) { new string[64],name[24]; GetPlayerName(clickedplayerid,name,sizeof(name)); format(string,sizeof(string),"Nick: %s\nDinheiro: %d\nMatou: %d\nMorreu: %d\nRelaзгo: [%0.2f]",name,GetPlayerScore(clickedplayerid),GetPlayerMo ney(clickedplayerid),Matou[clickedplayerid],Morreu[clickedplayerid]); ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX,"Player Status", string, "Fechar"); return 1; } |
Ajudo nisso = +REP