PHP код:
if (strcmp(cmd, "/getemprego", true) == 0)
{
if(PlayerInfo[playerid][pEmprego] != 0)
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк jб tem emprego,digite /sairdoemprego !");
return 1;
}
if (PlayerToPoint(2.0, playerid, 361.8300,173.5202,1008.3828))
{
TogglePlayerControllable(playerid, 0)
new list[600];
new emprego0[255];
new emprego1[255];
emprego0 = "{FF8C69}Nгo";
emprego1 = "{98FB98}Sim";
format(list, sizeof(list), "Nome dos empregos\tGanha Moedas\n");
format(list, sizeof(list), "%s\n{FFFFFF}Detetive\t[%s{FFFFFF}]", list, emprego0);
format(list, sizeof(list), "%s\n{FFFFFF}Advogado\t[%s{FFFFFF}]", list, emprego1);
format(list, sizeof(list), "%s\n{FFFFFF}Profissional de Sexo\t[%s{FFFFFF}]", list, emprego0);
format(list, sizeof(list), "%s\n{FFFFFF}Vendedor de Drogas\t[%s{FFFFFF}]", list, emprego0);
format(list, sizeof(list), "%s\n{FFFFFF}Seguranзas\t[%s{FFFFFF}]", list, emprego1);
format(list, sizeof(list), "%s\n{FFFFFF}Vendedor de Armas\t[%s{FFFFFF}]", list, emprego0);
format(list, sizeof(list), "%s\n{FFFFFF}Boxeador\t[%s{FFFFFF}]", list, emprego0);
format(list, sizeof(list), "%s\n{FFFFFF}Motorista de Onibus\t[%s{FFFFFF}]", list, emprego0);
format(list, sizeof(list), "%s\n{FFFFFF}Mendingo\t[%s{FFFFFF}]", list, emprego0);
format(list, sizeof(list), "%s\n{FFFFFF}Caminhoneiro\t[%s{FFFFFF}]", list, emprego0);
format(list, sizeof(list), "%s\n{FFFFFF}Pizza Boy\t[%s{FFFFFF}]", list, emprego1);
ShowPlayerDialog(playerid, 2569, DIALOG_STYLE_TABLIST_HEADERS, "{FFA54F}Empegos:", list, "Ok", "Cancelar");
EmDialog[playerid] = 1;
}
return 1;
}