08.05.2012, 19:33
pawn Код:
if(!strcmp(cmdtext, "/frag", true)) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /frag [id]");
new Target = strval(tmp), tname[MAX_PLAYER_NAME];
if(!IsPlayerConnected(Target)) return SendClientMessage(playerid,Vermelho,"ERRO: ID jogador errado");
GetPlayerName(Target,tname,sizeof(tname));
format(string, sizeof(string), "Frags de %s" ,tname);
SendClientMessage(playerid ,COLOR_GREEN, string);
format(string, sizeof(string), "Matou %d ves(es) | Morreu %d ves(es) | Dominou %d Area(s) | Grana %d | X1 Ganhos %d | X1 Perdidos %d | Se matou %d" ,PlayerInfo[Target][pMatou],PlayerInfo[Target][pMorreu],PlayerInfo[Target][pDominou],GetPlayerMoney(Target),PlayerInfo[Target][Ganhoux1],PlayerInfo[Target][Perdeux1],PlayerInfo[Target][pSematou]);
SendClientMessage(playerid ,COLOR_YELLOW, string);
}