06.02.2014, 02:13
why MoveDynamicObject toll2 and toll3 not move
Quote:
public OnFilterScriptExit() { return 1; } public Tolls() { foreach(Player, playerid) { if(IsPlayerInRangeOfPoint(playerid, 15.0, 1651.2354736328, -43.643432617188, 36.139217376709)) { MoveDynamicObject(toll1, 1651.2353515625, -43.642578125, 34.464115142822, 2.5); GivePlayerMoney(playerid, -5); GameTextForPlayer(playerid, "~y~WELL HELLO THERE GOOD SIR~n~THANK YOU~n~~r~$10", 3000, 3); SetTimerEx("Timer_TollsClose",5000,false,"i", 0); } if(IsPlayerInRangeOfPoint(playerid, 5.0, 623.1992200,-1179.1992200,19.2000000)) // Richman tolls kanan { MoveDynamicObject(toll2, 623.19921875, -1179.19921875, 18.129999160767, 2.5); GivePlayerMoney(playerid, -50); GameTextForPlayer(playerid, "~y~Jangan Lupa Gunakan SeatBeat atau Helmet Anda~n~THANK YOU~n~~r~$50", 3000, 3); SetTimerEx("Timer_TollsClose",5000,false,"i", 0); } if(IsPlayerInRangeOfPoint(playerid, 5.0, 609.5996100, -1199.7998000, 18.1000000)) // Richman tolls kiri { MoveDynamicObject(toll3, 609.599609375, -1199.7998046875, 16.60000038147, 2.5); GivePlayerMoney(playerid, -50); GameTextForPlayer(playerid, "~y~Jangan Lupa Gunakan SeatBeat atau Helmet Anda~n~THANK YOU~n~~r~$50", 3000, 3); SetTimerEx("Timer_TollsClose",5000,false,"i", 0); } } } public Timer_TollsClose(tollid) { switch(tollid) { case 0: MoveDynamicObject(toll1, 1651.2354736328, -43.643432617188, 36.139217376709, 2.5); case 1: MoveDynamicObject(toll2, 623.1992200,-1179.1992200,19.2000000, 2.5); //richman kanan case 2: MoveDynamicObject(toll3, 609.5996100, -1199.7998000, 18.1000000, 2.5); // richman kiri } } |