Lift pomicni neradi

Započeo Kirali, Septembar 05, 2019, 10:21:16 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Jucer sam ga bio zavrsio lift da npr da iz garaze se podigne na zadnji kat i kad upise komandu nis se ne dogodi moze pomoc ?
Deo skripte:
new bool:Viplift, bool:VipliftuPokretu;


forward VipliftTrue( );
public VipliftTrue( )
{
    Viplift = true;
    VipliftuPokretu = false;
}

forward VipliftFalse( );
public VipliftFalse( )
{
    Viplift = false;
    VipliftuPokretu = false;
}








CMD:vlift( playerid, params[] )
{
	if( IsPlayerInRangeOfPoint( playerid, 9.0, 1181.3427,-1180.5608,20.1561 ) )
	{ // GARAZA

	    if(VipliftuPokretu == true) return GRESKA( playerid, "Ne mozes pozvati lift jer je u pokretu!" );
        if( PlayerInfo[ playerid ][ xHelper ] >= 1 || PlayerInfo[ playerid ][ xAdmin ] >= 1 )
		{
		if(Viplift == false)
		{
			MoveDynamicObject(rudzllift, 1181.3427,-1180.5608,20.1561,3.0);//spusta lift // GARAZA
			SetTimer( "VipliftTrue", 15000, 0 );
			VipliftuPokretu = true;
		}
		else if(Viplift == true)
		{
			MoveDynamicObject(rudzllift, 1181.8247,-1180.7592,80.6080,3.0);//dize lift //zadnji kat
			SetTimer( "VipliftFalse", 15000, 0 );
			VipliftuPokretu = true;
		}


		}
		else return GRESKA( playerid, "Ne mozete vi koristiti lift!" );
	}
	
	else if( IsPlayerInRangeOfPoint( playerid, 9.0,1181.8247,-1180.7592,80.6080 ) )
	{ // zadnji kat
        if(VipliftuPokretu == true) return GRESKA( playerid, "Ne mozes pozvati lift jer je u pokretu!" );
        if(  PlayerInfo[ playerid ][ xHelper ] >= 1 || PlayerInfo[ playerid ][ xAdmin ] >= 1 )
		{
		if(Viplift == true)
		{
			MoveDynamicObject(rudzllift,1181.8247,-1180.7592,80.6080,3.0);//dize lift //zadni kat
			SetTimer( "ViplifttFalse", 15000, 0 );
			VipliftuPokretu = true;
		}
		else if(Viplift == false)
		{
			MoveDynamicObject(rudzllift, 1181.3427,-1180.5608,20.1561,3.0);//spusta lift // GARAZA
			SetTimer( "ViplifttTrue", 15000, 0 );
			VipliftuPokretu = true;
		}


		}
		else return GRESKA( playerid, "Ne mozete vi koristiti lift!" );
	}




	return true;
}

Kordinate garaze 1181.3427,-1180.5608,20.1561
Zadnji kat  1181.8247,-1180.7592,80.6080


02

*

Daj nam celu skriptu inc da li si stavio move objecta?
002

Kako si definisao ovo "rudzllift"

credits: Xunder, Ino420, Muma

Citat: Pottus;3903994
SetPlayerPos("dreni1998", 666.666, 666.666, 666.666, 666.666);    ///// GO IN HELL MOTHERFUCKER

https://i.imgur.com/XHLx9oj.gif
https://i.ibb.co/ZJqQKWT/NXRX.gif