SA-MP Forums Archive
ajuda a fazer o 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 a fazer o portao? (/showthread.php?tid=172982)



ajuda a fazer o portao? - loukofire - 31.08.2010

Код:
968,-2718.780029,2359.111328,71.774856,-1.000000,178.000000,-73.000000 \\--aberto o portao
Код:
968,-2718.780029,2359.111328,71.774856,-1.000000,88.000000,-73.000000  \\--fechado o portao
Код:
#include <a_samp>

#pragma tabsize 0

#define cor_vermelha 0xF00000AA

new portao;

public OnFilterScriptInit()
{
portao = CreateObject(idobjeto,CoodenadaX,CoordenadaY,CoordenadaZ,RotacaoX,RotacaoY,RotacaoZ);
MoveObject(portao,CoordenadaX,CoordenadaY,CoordenadaZ,3.0);
return 0;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext,"/comandoabrir",true)==0) {
MoveObject(portao,CoordenadaX,CoordenadaY,CoordenadaZ,3.0);
return 1;
}
if(strcmp(cmdtext,"/comandofechar",true)==0) {
MoveObject(portao,Coordenada Inicial,Coordenada Inicial,Coordenada Inicial,3.0);
return 1;
}
return 0;
}
n sei como colocar a cordenada certa