SA-MP Forums Archive
HELP - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP (/showthread.php?tid=260249)



HELP - -matt- - 08.06.2011

Hi For some reason i have a server and sometime people will spawn a car and get frozen in it like they cant move the cam or move the vehicle or get out of it the only thing they can do is talk and exit the game why can somebody help me pleas thanks.


Re: HELP - Tee - 08.06.2011

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        TogglePlayerControllable(playerid,true);
    }
    //rest of your stuff here



Re: HELP - -matt- - 08.06.2011

Wat That does
?


Re: HELP - iFriSki - 08.06.2011

https://sampwiki.blast.hk/wiki/Function:...erControllable


Re: HELP - Iphone1234g - 08.06.2011

just change player frozen setting liek this
this is for freezing player
Quote:

TogglePlayerControllable(playerid,flase);

and this is for unfrozen player
Quote:

TogglePlayerControllable(playerid,true);