Small Problem. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Small Problem. (
/showthread.php?tid=445466)
Small Problem. -
nor15 - 21.06.2013
I use this coz the cityhall don't get me to Los Santos , it teleports me to LV
so i use this cmd
PHP код:
forward CityHallBug();
public CityHallBug()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i,3.0,2415.6001,1123.7100,10.8203))
{
SetPlayerPos(i,1481.3392,-1766.5693,18.7958);
SetPlayerFacingAngle(i,357.7562);
SetCameraBehindPlayer(i);
TogglePlayerControllable(i,0);
TogglePlayerControllable(i,1);
}
}
}
}
it compiles but when i go to this place nothing happen.
AW: Small Problem. -
HurtLocker - 21.06.2013
you need to call the call back... I only know how to do this with a timer but pottus says sth about dynamic areas which require less cpu usage, ask him
Re: Small Problem. -
nor15 - 21.06.2013
so shall i do it with 1 second so it can be work , or less than 1 second ?
EDIT: -Solved