Započeo zikolukic
•31. Mar. 2013.• Zaključano[Pomoc] Automatska vrata
404
pregleda
4
postova
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
45
Postovi:
26
Teme:
Pridružio se:Okt. 2012
31. Mar. 2013.
Skripta koju koristim😮d 0
Detaljan opis problema😛ravim skriptu automatska vrata da se otvaraju i zatvaraju kad igrac pridje blizu vratima,ali imam jedan erorr
Dio skripte:]
http://picturepush.com/public/12551651
Detaljan opis problema😛ravim skriptu automatska vrata da se otvaraju i zatvaraju kad igrac pridje blizu vratima,ali imam jedan erorr
Dio skripte:]
#include
new gate;
new bool:gateopen;
public OnFilterScriptInit()
{
SetTimer("GateCheck", 800, true);
gate = CreateObject(968,1544.6999500,-2279.3999000,13.0000000,0.0000000,0.0000000,0.0000000);
return 1;
}
forward GateCheck();
public GateCheck()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 1549.8815,-2274.1770,13.5495,185.4498))
{
if(gateopen == false)
{
MoveObject(gate, 1544.6999500,-2279.3999000,13.0000000, 3.5);
gateopen = true;
}
return;
}
}
if(gateopen == true)
{
MoveObject(gate, 1544.6999500,-2279.3999000,13.0000000, 3.5);
gateopen = false;
}
}http://picturepush.com/public/12551651
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
978
Postovi:
98
Teme:
Pridružio se:Maj 2011
31. Mar. 2013.
#include
new gate;
new bool:gateopen;
public OnFilterScriptInit()
{
SetTimer("GateCheck", 800, true);
gate = CreateObject(968,1544.6999500,-2279.3999000,13.0000000,0.0000000,0.0000000,0.0000000);
return 1;
}
forward GateCheck();
public GateCheck()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 1549.8815,-2274.1770,13.5495,185.4498))
{
if(gateopen == false)
{
MoveObject(gate, 1544.6999500,-2279.3999000,13.0000000, 3.5);
gateopen = true;
}
else if(gateopen == true)
{
MoveObject(gate, 1544.6999500,-2279.3999000,13.0000000, 3.5);
gateopen = false;
}
return 1;
}
}
}probaj ovako 😉
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava