[Ajuda] /servico mecanico - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] /servico mecanico (
/showthread.php?tid=497327)
/servico mecanico -
HHwilliamHH - 26.02.2014
Galera na minha gm tem um bug que tipo, vocк aperta F ou ENTER no icone eo mecanico entra em serviзo Porem, quando aparece o anuncio o nome que aparece que entro em servico nгo й dele, e sim de um ID qualquer do server.
Код HTML:
if(strcmp(cmd, "/bcmec", true) == 0)
{
if(IsAMec(playerid))
{
if(PlayerToPoint(3,playerid,1466.7955,-2226.0144,13.5469))
{
if(EmpregoDuty[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Agora Vocк Estб De Folga, e nгo receberб chamados!");
EmpregoDuty[playerid] = 0;
Mechanics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Agora vocк estб de plantгo como mecвnico e irб receber chamadas de pessoas que precisam.");
EmpregoDuty[playerid] = 2;
SetPlayerSkin(playerid,50);
format(string, sizeof(string), "[Anuncio] O Mecвnico %s estб em servico, /servico mecanico.", sendername);
OOCNews(0x2993EDAA,string);
Mechanics += 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo estб perto da garagem !");
return true;
}
}
}
Re: /servico mecanico -
brunox - 26.02.2014
pawn Код:
if(strcmp(cmd, "/bcmec", true) == 0)
{
if(IsAMec(playerid))
{
if(PlayerToPoint(3,playerid,1466.7955,-2226.0144,13.5469))
{
if(EmpregoDuty[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Agora Vocк Estб De Folga, e nгo receberб chamados!");
EmpregoDuty[playerid] = 0;
Mechanics -= 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Agora vocк estб de plantгo como mecвnico e irб receber chamadas de pessoas que precisam.");
EmpregoDuty[playerid] = 2;
SetPlayerSkin(playerid,50);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string, sizeof(string), "[Anuncio] O Mecвnico %s estб em servico, /servico mecanico.", name);
OOCNews(0x2993EDAA,string);
Mechanics += 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo estб perto da garagem !");
return true;
}
}
}