#1

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.
Reply
#2

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

Wat That does
?
Reply
#4

https://sampwiki.blast.hk/wiki/Function:...erControllable
Reply
#5

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);

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)