Deixa PT, ja consegui criar, vo postar aqui o comando pra quem estiver com duvidas
Grato ao PT que tentou me ajudar.
pawn Код:
if (strcmp(cmd, "/membrosp", true) == 0)
{
if(PlayerInfo[playerid][pProfissao] >= 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pProfissao] == 1)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Detetive %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 2)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Advogado %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 3)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Prostitua %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 4)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Vendendor de Entorpecentes %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 5)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Mecвnico %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 6)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Protetor %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 7)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Poeta %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 8)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Boxeador %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 9)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Motorista de Фnibus %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 10)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Mendingo %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 11)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "Caminhoneiro %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
if(PlayerInfo[playerid][pProfissao] == 12)
{
SendClientMessage(playerid, 0xC0C0C0AA, "Membros da Profissгo Online:");
format(string, sizeof(string), "* Bruxo %s", sendername);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
}
else
{
SendClientMessage(playerid, 0x808080AA, "Vocк nгo tem um Emprego");
return 1;
}
return 1;
}