24.12.2013, 19:14
(
Последний раз редактировалось ScriptGameS; 24.12.2013 в 21:25.
)
Fala aew galerinha blz? bom sem intro e vamos lб oq interessa
1єCriando as News e Forwards
PHP код:
new PortaoTUTO;//Definimos e new troque TUTO por qlq coisa
forward PortaoTUTO1();//Essa e a new do moveobject
2є:Na public OnGameModeInit
PHP код:
PortaoTUTO = CreateObject(980, 980, 2360.8999023438, -1271.9000244141, 25, 0, 0, 269.75);//
Vб na public OnPlayerCommandText
PHP код:
if(strcmp(cmd, "/PortaoTuto", true) == 0)
{
if(IsATaxi(playerid) && IsPlayerInRangeOfPoint(playerid, 15.0, 2313.5, -1217.6999511719, 23.89999961853 ))
{
F_MoveObject( PortaoTUTO, 2313.5, -1208.8000488281 ,23.89999961853 ,3);//posiзгo do portгo aberto
SetTimer("PortaoTUTO1", 4200, false);//SETTIMER DO PORTГO
}
return 1;
}
PHP код:
public PortaoTUTO1()
{
MoveObject(PortaoTUTO,980, 2360.8999023438, -1271.9000244141, 25, 0, 0, 269.75);//aqui coloque as coordenadas do portгo criado ORIGINAL(FECHADO)
return true;
}
PHP код:
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{//Botгo de buzina
if(IsATaxi(playerid)
{
OnPlayerCommandText(playerid,"/ptuto");
}
}
OBS:COLOQUE ASSIM PARA CRIAR O PORTГO
CreateObject = PortaoTUTO(980, 980, 2360.8999023438, -1271.9000244141, 25, 0, 0, 269.75);//coord do portгo