26.11.2012, 22:47
pawn Код:
Create3DTextLabel("/profissoes",Branco,1490.7410,1305.8712,1093.2964,60.0,0);
pawn Код:
if (strcmp("/profissoes", cmdtext, true, 10) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Carteira") == 0){
SendClientMessage(playerid, Vermelho, "(ERRO) Exigimos uma carteira de trabalho, vai ate um DP Departamento Policial!");
return 1;
}
if(PlayerToPoint(3.0, playerid, 1490.7410,1305.8712,1093.2964))
SendClientMessage(playerid, 0x6500CAAA, "~~~~~~~~~~~~~~~~~~~~~~~ Profissхes ~~~~~~~~~~~~~~~~~~~~~~~");
format(string, sizeof(string), "» Bem vindo(a) %s, em nossa central de profissхes" , aname);
SendClientMessage(playerid, 0xFFFFFFFF, string);
SendClientMessage(playerid, 0xFFFFFFFF, "» Selecione uma profissгo e aguarde, seu curriculum serб analisado!");
SendClientMessage(playerid, 0x6500CAAA, "~~~~~~~~~~~~~~~~~~~~~~~ Profissхes ~~~~~~~~~~~~~~~~~~~~~~~");
ShowPlayerDialog(playerid,menuprof, DIALOG_STYLE_LIST, "Agкncia de Empregos", "Honestas\nHonestas1\nHonestas2\nDesonestas\nPublicos", "OK", "Voltar");
return 1;
}
pawn Код:
AddPlayerClass(18,1490.8436,1305.8040,1093.2964,136.9100,0,0,0,0,0,0); // checkprofs