23.07.2010, 14:29
metes isso assim
so o sistema de suicidio nao sei se e bem assim nao testei tou com pressa...
pawn Код:
//no topo
new status[playerid][3];
// no onplayercommand text
if(strcmp(cmd, "/status", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "&~&~&~&~&~&~&~&~&~&~STATUS~&~&~&~&~&~&&~&~&~&");
format(string, sizeof(string), "Matou: %d", status[playerid][0]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Morreu: %d", status[playerid][1]);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Se Suicidou: %d", status[playerid][2]);
SendClientMessage(playerid, COLOR_WHITE, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&");
return 1;
}
//depois no onplayerdeath
status[killerid][0]++;
status[playerid][1]++;
if(killerid == playerid || killerid == -1)
{
status[playerid][3]++;
}

