03.05.2018, 18:14
Quero colocar o /status em forma de dialog, alguem poderia transforma-lo?
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];
format(string222, sizeof(string222), "......:::::: - %s: [ID: %d] - ::::::.....", GetPlayerNameEx(plid), plid);
SendClientMessage(playerid, -1, string222);
format(string, sizeof(string), "{CCFF00}» EXP: %d/%d {CCFF00}» Grana na Mгo: $%d", PlayerInfo[plid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(plid));
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{00BFFF}» Level: %d/%d {00BFFF}» Saldo Bancбrio: $%d", PlayerInfo[plid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[plid][_SaldoBancario]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{CCFF00}» Estudo: %d/%d {CCFF00}» Casou Com: %s", PlayerInfo[plid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[plid][_CasouCom]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{00BFFF}» Profissгo ID: %d {00BFFF}» Skin ID: %d", PlayerInfo[plid][_Profissao], PlayerInfo[plid][_Skin]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{CCFF00}» Matou: %d {CCFF00}» Morreu: %d", matou[plid], morreu[plid]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{00BFFF}» Dias Vip: %d", GetVIPDays(plid));
SendClientMessage(playerid, -1, string);
SendClientMessage(playerid, -1, string222);
format(string, sizeof(string), "%s estб vendo seu status. ( /status )", GetPlayerNameEx(playerid));
SendClientMessage(plid, COLOR_GREEN, string);
}
else
{
SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!");
}
return 1;
}
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];
format(string222, sizeof(string222), "......:::::: - %s: [ID: %d] - ::::::.....", GetPlayerNameEx(plid), plid);
SendClientMessage(playerid, -1, string222);
format(string, sizeof(string), "{CCFF00}» EXP: %d/%d {CCFF00}» Grana na Mгo: $%d", PlayerInfo[plid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(plid));
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{00BFFF}» Level: %d/%d {00BFFF}» Saldo Bancбrio: $%d", PlayerInfo[plid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[plid][_SaldoBancario]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{CCFF00}» Estudo: %d/%d {CCFF00}» Casou Com: %s", PlayerInfo[plid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[plid][_CasouCom]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{00BFFF}» Profissгo ID: %d {00BFFF}» Skin ID: %d", PlayerInfo[plid][_Profissao], PlayerInfo[plid][_Skin]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{CCFF00}» Matou: %d {CCFF00}» Morreu: %d", matou[plid], morreu[plid]);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{00BFFF}» Dias Vip: %d", GetVIPDays(plid));
SendClientMessage(playerid, -1, string);
SendClientMessage(playerid, -1, string222);
format(string, sizeof(string), "%s estб vendo seu status. ( /status )", GetPlayerNameEx(playerid));
SendClientMessage(plid, COLOR_GREEN, string);
}
else
{
SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!");
}
return 1;
}