[Ajuda] Portao - 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] Portao (
/showthread.php?tid=389504)
Portao -
Yuri_xD - 02.11.2012
coloquei portao so para adm mais n abre!
comando
Quote:
if(strcmp(cmd, "/portaoadm", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1 && PlayerToPoint(15.0, playerid, 368.79980469,-2011.39941406,9.39999962))
{ //GateGaragem
MoveObject( Portaoadm, 368.79980469,-2011.39941406,3.39999962,3,0.0,0.0,0.0);
GameTextForPlayer(playerid, "~w~Portao adm ~n~~b~Aberta", 5000, 3);
SetTimer("Portaoadm2", 5000, false);
SendClientMessage(playerid, TEAM_BALLAS_COLOR, "O Portгo Fecharб em 5 segundos.");
}
return true;
}
|
alguйm ajuda ai
Re: Portao -
Yuri_xD - 02.11.2012
alguйm '-'?
Re: Portao -
Ouro - 02.11.2012
Vocк colocou as coordenadas certas? Apуs usar o comando abrir o comando com a coordenada de aberto, e ao fechar com o SetTimer a coordenada de fechar?
Re: Portao -
Yuri_xD - 02.11.2012
sim cara :/
chego no portao do comando /portaoadm ele nem aparece portao adm aberto nem nada :/
Re: Portao -
telmo_ferreira - 02.11.2012
meteste foi para todos que nao sao admins abrirem o portao.
mete
if(PlayerInfo[playerid][pAdmin] > 1 && PlayerToPoint(15.0, playerid, 368.79980469,-2011.39941406,9.39999962))
em vez de
if(PlayerInfo[playerid][pAdmin] < 1 && PlayerToPoint(15.0, playerid, 368.79980469,-2011.39941406,9.39999962))
Re: Portao -
Yuri_xD - 02.11.2012
vlw cara funciono
Re: Portao -
telmo_ferreira - 02.11.2012
mas percebeste o que tinhas mal ? e o que faz ao usares > e <