15.11.2011, 20:35
pawn Код:
if(strcmp(cmd, "/vergrana", true) == 0) {
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_GREEN, "/vergrana [id]");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
new string222[256];
format(string222, sizeof(string222), "{0099FF}(~){CCCCFF} Vocк esta vendo a grana de: [%s: [ID: %d]]!", pname,plid);
SendClientMessage(playerid, 0x00FF00AA, string222);
format(string, sizeof(string), "» Saldo de Grana: [%d]", GetPlayerMoney(plid));
SendClientMessage(playerid, 0x00FF00AA, string);
return 1;
}else{
SendClientMessage(playerid, Vermelho, "{0099FF}(~){CCCCFF} ID invбlido");
return 1;
}
}