[Ajuda] Portao
#1

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
Reply
#2

alguйm '-'?
Reply
#3

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?
Reply
#4

sim cara :/

chego no portao do comando /portaoadm ele nem aparece portao adm aberto nem nada :/
Reply
#5

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))
Reply
#6

vlw cara funciono
Reply
#7

mas percebeste o que tinhas mal ? e o que faz ao usares > e <
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)