[Ajuda] Pq nгo ta funcionando o playertopoint? - 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] Pq nгo ta funcionando o playertopoint? (
/showthread.php?tid=622330)
Pq nгo ta funcionando o playertopoint? -
zGuigui2068 - 20.11.2016
PHP код:
if(!strcmp(cmdtext, "/plantarb", true))
{
if(!PlayerToPoint(2.0 ,playerid, 1928.771484,-1785.187012,13.139766))
{
if(bomb1[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem Bomba!");
return 1;
}
if(Bombp != 0)
{
SendClientMessage(playerid, COLOR_GREY, "Alguem ja plantou uma bomba aqui.");
return 1;
}
if(Explodido != 0)
{
SendClientMessage(playerid, COLOR_GREY, "o caixa elкtronico foi explodido, espere quando ele estiver pronto!.");
return 1;
}
pdinhe1 = 0;
pdinhe2 = 0;
pdinhe3 = 0;
pdinhe4 = 0;
pdinhe5 = 0;
pdinhe6 = 0;
pdinhe7 = 0;
Bombp = 1;
bomb1[playerid] = 0;
bombe[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк plantou uma Bomba no caixa Digite /explodirb.");
GameTextForPlayer(playerid,"~r~Bomba plantada",5000, 5);
return 1;
}
else if(PlayerToPoint(1.0,playerid,354.6608,172.0170,1008.3802))
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem Bomba!");
return 1;
}
if(bomb1[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem Bomba!");
return 1;
}
if(Bombp != 0)
{
SendClientMessage(playerid, COLOR_GREY, "Alguem ja plantou uma bomba aqui.");
return 1;
}
if(Explodido != 0)
{
SendClientMessage(playerid, COLOR_GREY, "o caixa elкtronico foi explodido, espere quando ele estiver pronto!.");
return 1;
}
pdinhe1 = 0;
pdinhe2 = 0;
pdinhe3 = 0;
pdinhe4 = 0;
pdinhe5 = 0;
pdinhe6 = 0;
pdinhe7 = 0;
Bombp = 1;
bomb1[playerid] = 0;
bombe[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vocк plantou uma Bomba no caixa Digite /explodirb.");
GameTextForPlayer(playerid,"~r~Bomba plantada",5000, 5);
return 1;
}
Eu queria duplicar o /plantarb pq vai ser 2 caixas eletronico mas ta dando erro nas coordenadas...
Re: Pq nгo ta funcionando o playertopoint? -
ipsLuan - 20.11.2016
O sнmbolo
! significa NEGAЗГO.
-
zGuigui2068 - 20.11.2016
Eu tentei tirar os ! e colocar os ! no playertopoint mas ainda da para usar o cmd em qualquer loca...
Consegui vlw flw, era a forma em q o comando esta posicionado... estava totalmente errado
Re: Pq nгo ta funcionando o playertopoint? -
ipsLuan - 20.11.2016
Cara, vocк estб pйssimo de lуgica...
Код:
else if(PlayerToPoint(1.0,playerid,354.6608,172.0170,1008.3802))
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem Bomba!");
return 1;
}
if(bomb1[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem Bomba!");
return 1;
}