03.05.2018, 19:16
PHP Code:
if(strcmp("/status", cmd, true) == 0)
{
new plid;
if(sscanf(cmdtext, "s[8]u", cmd, plid))
{
SendClientMessage(playerid, COLOR_GREEN, "Use /status [id]");
return 1;
}
if(IsPlayerConnected(plid))
{
new string222[512],a[600];
format(string222, sizeof(string222), "......:::::: - %s: [ID: %d] - ::::::.....", GetPlayerNameEx(plid), plid);
strcat(a,string);
format(string, sizeof(string), "{CCFF00}» EXP: %d/%d {CCFF00}» Grana na Mгo: $%d", PlayerInfo[plid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(plid));
strcat(a,string)
format(string, sizeof(string), "{00BFFF}» Level: %d/%d {00BFFF}» Saldo Bancбrio: $%d", PlayerInfo[plid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[plid][_SaldoBancario]);
strcat(a,string)
format(string, sizeof(string), "{CCFF00}» Estudo: %d/%d {CCFF00}» Casou Com: %s", PlayerInfo[plid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[plid][_CasouCom]);
strcat(a,string)
format(string, sizeof(string), "{00BFFF}» Profissгo ID: %d {00BFFF}» Skin ID: %d", PlayerInfo[plid][_Profissao], PlayerInfo[plid][_Skin]);
strcat(a,string)
format(string, sizeof(string), "{CCFF00}» Matou: %d {CCFF00}» Morreu: %d", matou[plid], morreu[plid]);
strcat(a,string)
format(string, sizeof(string), "{00BFFF}» Dias Vip: %d", GetVIPDays(plid));
strcat(a,string)
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_MSGBOX, "Status", strcat(a,string), "OK",#);
format(string, sizeof(string), "%s estб vendo seu status. ( /status )", GetPlayerNameEx(playerid));
SendClientMessage(plid, COLOR_GREEN, string);
}
else return SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!");
return 1;
}