16.07.2011, 20:06
pawn Код:
//*************************** Inicio do GM **********************
new Score[MAX_PLAYERS], Matou[MAX_PLAYERS];
//*************************** OnPlayerDeath ********************
Matou[killerid] ++;
if(Matou[killerid] >= 10)
{
SendClientMessage(killerid, 0xFFFFFFFF, "Vocк subiu de nнvel o/");
Score[killerid] += 2;
Matou[killerid] = 0;
return 1;
}
//*************************** OnPlayerCommandText ********************
if(strcmp(cmd, "/score", true) == 0)
{
#define Branco 0xFFFFFFFF
new tmp[20], PlayerB, string[30], Manolo[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /Score [id]");
PlayerB = strval(tmp);
GetPlayerName(PlayerB, Manolo, sizeof(Manolo));
format(string, sizeof(string), "%s: %d", Manolo, Score[PlayerB]);
SendClientMessage(playerid, Branco, string);
return 1;
}