case 0:
{
if(dini_Int(file,"naoupou") == 1) return SendClientMessage(playerid, Vermelho, "Espere um UP para escolher a prof novamente!");
if(dini_Int(file,"naoupou") == 0)
TogglePlayerControllable(playerid, 1);
if(dini_Int(file, "Level")> 10){
SendClientMessage(playerid, 0xFFFFFF, "|INFO| Profissгo alterada com sucesso!"); // Jornalista
SendClientMessage(playerid, 0x6767B4AA, "|INFO| Para saber os comandos de sua profissгo, digite /profissao");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
Logarprof(playerid);
dini_IntSet(file, "Profissao", 16); // 16 = pizzaboy
dini_FloatSet(file,"CasaX",Float:1310.1312);
dini_FloatSet(file,"CasaY",Float:-1373.9531);
dini_FloatSet(file,"CasaZ",Float:13.6218);
ShowMenuForPlayer(spawnprof, playerid);
SetSpawnInfo(playerid, 0, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
TogglePlayerControllable(playerid, 1);
} else {
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, Vermelho, "|INFO| Erro na escolha da sua prof!");
}
case 0:
{
if(dini_Int(file,"naoupou") == 1) return SendClientMessage(playerid, Vermelho, "Espere um UP para escolher a prof novamente!");
if(dini_Int(file,"naoupou") == 0)
TogglePlayerControllable(playerid, 1);
if(dini_Int(file, "Level")> 10){
SendClientMessage(playerid, 0xFFFFFF, "|INFO| Profissгo alterada com sucesso!"); // Jornalista
SendClientMessage(playerid, 0x6767B4AA, "|INFO| Para saber os comandos de sua profissгo, digite /profissao");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
Logarprof(playerid);
dini_IntSet(file, "Profissao", 16); // 16 = pizzaboy
dini_FloatSet(file,"CasaX",Float:1310.1312);
dini_FloatSet(file,"CasaY",Float:-1373.9531);
dini_FloatSet(file,"CasaZ",Float:13.6218);
ShowMenuForPlayer(spawnprof, playerid);
SetSpawnInfo(playerid, 0, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
} else {
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, Vermelho, "|INFO| Erro na escolha da sua prof!");
}
case 0:
{
if(dini_Int(file,"naoupou") == 1)
{
SendClientMessage(playerid, Vermelho, "Espere um UP para escolher a prof novamente!");
return 1;
}
else if(dini_Int(file,"naoupou") == 0)
{
if(dini_Int(file, "Level")> 10)
{
SendClientMessage(playerid, 0xFFFFFF, "|INFO| Profissгo alterada com sucesso!"); // Jornalista
SendClientMessage(playerid, 0x6767B4AA, "|INFO| Para saber os comandos de sua profissгo, digite /profissao");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
Logarprof(playerid);
dini_IntSet(file, "Profissao", 16); // 16 = pizzaboy
dini_FloatSet(file,"CasaX",Float:1310.1312);
dini_FloatSet(file,"CasaY",Float:-1373.9531);
dini_FloatSet(file,"CasaZ",Float:13.6218);
ShowMenuForPlayer(spawnprof, playerid);
SetSpawnInfo(playerid, 0, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, Vermelho, "|INFO| Erro na escolha da sua prof!");
}
}
case 0:
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file,"naoupou") == 1)
{
SendClientMessage(playerid, Vermelho, "Espere um UP para escolher a prof novamente!");
return 1;
}
else if(dini_Int(file,"naoupou") == 0)
{
if(dini_Int(file, "Level")> 10)
{
SendClientMessage(playerid, 0xFFFFFF, "|INFO| Profissгo alterada com sucesso!"); // Jornalista
SendClientMessage(playerid, 0x6767B4AA, "|INFO| Para saber os comandos de sua profissгo, digite /profissao");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
Logarprof(playerid);
dini_IntSet(file, "Profissao", 16); // 16 = pizzaboy
dini_FloatSet(file,"CasaX",Float:1310.1312);
dini_FloatSet(file,"CasaY",Float:-1373.9531);
dini_FloatSet(file,"CasaZ",Float:13.6218);
ShowMenuForPlayer(spawnprof, playerid);
SetSpawnInfo(playerid, 0, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, Vermelho, "|INFO| Erro na escolha da sua prof!");
}
}
GetPlayerName(playerid, aname, sizeof(aname));
|
Ve se isto existe no seu GM
pawn Code:
|
if(current == honestas1)
{
new string[266];
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
switch(row)
{
case 0:
{
// new aname[MAX_PLAYER_NAME];
// GetPlayerName(playerid, aname, sizeof(aname));
//format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file,"rouboubanco") == 1)
{
SendClientMessage(playerid, Vermelho, "Espere um UP para escolher a prof novamente!");
}
else if(dini_Int(file,"rouboubanco") == 0)
{
if(dini_Int(file, "Level")> 10)
{
SendClientMessage(playerid, 0xFFFFFF, "|INFO| Profissгo alterada com sucesso!"); // Jornalista
SendClientMessage(playerid, 0x6767B4AA, "|INFO| Para saber os comandos de sua profissгo, digite /profissao");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
Logarprof(playerid);
dini_IntSet(file, "Profissao", 16); // 16 = pizzaboy
dini_FloatSet(file,"CasaX",Float:1310.1312);
dini_FloatSet(file,"CasaY",Float:-1373.9531);
dini_FloatSet(file,"CasaZ",Float:13.6218);
ShowMenuForPlayer(spawnprof, playerid);
SetSpawnInfo(playerid, 0, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
}
}
else
{
SendClientMessage(playerid, Vermelho, "|INFO| Erro na escolha da sua prof!");
}
}
....
}
}
if(current == profissoes)
{
switch(row)
{
case 0: // Honestas
{
HideMenuForPlayer(profissoes, playerid);
ShowMenuForPlayer(honestas1, playerid);
TogglePlayerControllable(playerid, 0);
}
profissoes = CreateMenu("Profissoes", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(profissoes, 0, "~>~ Honestas 1");
new Menu:profissoes;
new Menu:honestas1;
return 1;
if(current == honestas1)
{
new string[266];
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
switch(row)
{
case 0:
{
if(dini_Int(file,"rouboubanco") == 1)
{
SendClientMessage(playerid, Vermelho, "Espere um UP para escolher a prof novamente!");
return 1;
}
else if(dini_Int(file,"rouboubanco") == 0)
{
if(dini_Int(file, "Level")> 10)
{
SendClientMessage(playerid, 0xFFFFFF, "|INFO| Profissгo alterada com sucesso!"); // Jornalista
SendClientMessage(playerid, 0x6767B4AA, "|INFO| Para saber os comandos de sua profissгo, digite /profissao");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
Logarprof(playerid);
dini_IntSet(file, "Profissao", 16); // 16 = pizzaboy
dini_FloatSet(file,"CasaX",Float:1310.1312);
dini_FloatSet(file,"CasaY",Float:-1373.9531);
dini_FloatSet(file,"CasaZ",Float:13.6218);
ShowMenuForPlayer(spawnprof, playerid);
SetSpawnInfo(playerid, 0, dini_Int(file, "Skin"), dini_Int(file, "CasaX"), dini_Int(file, "CasaY"), dini_Int(file, "CasaZ"), 354.1657, 0, 0, 0, 0, 0, 0);
return 1;
}
}
else
{
SendClientMessage(playerid, Vermelho, "|INFO| Erro na escolha da sua prof!");
return 1;
}
}