Freezed when jacked
#6

Quote:
Originally Posted by Calgon
Why use extra code, when you don't really need it. Try this OnPlayerStateChange().

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == 2 && oldstate == 1)
    {
        // The old state was on foot, now checking if they're changing their state to driving a vehicle.
        TogglePlayerControllable(playerid, true);
    {
    return 1;
}
Doesn't work, i wanted it to check if he is jacked, it toggles controllable to true.
So i tried putting if(newstate == 1 && oldstate == 2) so it will check if you were in a car and now on foot it sets controllable to 1.
But it doesn't work if your jacked from front or front back seat(passenger).

Please help me out, since i tried lots and lots of stuff like timers and tried to modify your code but nothing.

Reply


Messages In This Thread
Freezed when jacked - by Blades - 18.09.2009, 11:39
Re: Freezed when jacked - by [HiC]TheKiller - 18.09.2009, 11:42
Re: Freezed when jacked - by Blades - 18.09.2009, 13:34
Re: Freezed when jacked - by [HiC]TheKiller - 19.09.2009, 01:37
Re: Freezed when jacked - by Calgon - 19.09.2009, 06:46
Re: Freezed when jacked - by Blades - 19.09.2009, 10:48
Re: Freezed when jacked - by Mike Garber - 19.09.2009, 12:29
Re: Freezed when jacked - by Memoryz - 19.09.2009, 14:40

Forum Jump:


Users browsing this thread: 3 Guest(s)