[AJUDA] Ratio em meu /Status
#2

metes isso assim

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]++;
}
so o sistema de suicidio nao sei se e bem assim nao testei tou com pressa...
Reply


Messages In This Thread
[AJUDA] Ratio em meu /Status - by Kasura - 23.07.2010, 08:52
Re: [AJUDA] Ratio em meu /Status - by SlashPT - 23.07.2010, 14:29
Re: [AJUDA] Ratio em meu /Status - by Kasura - 23.07.2010, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)