OnPlayerStateChange problem
#1

I have a kart deathmatch where you drive a kart and driveby on the top of four dragons casino. I'm trying to make it respawn the player who exits the vehicle and say you have been disqualified, but it is not working, here is the code:

pawn Код:
// under onplayerstatechange

        if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
        {
            if(GetPlayerVehicleID(playerid),571)
            {
                SpawnPlayer(playerid);
                SendClientMessage(playerid, red, "You Have Been Disqualified From Kart DM.  Reason:  Vehicle Exited.");
                GameTextForPlayer(playerid,"~p~disqualified ~n~~w~reason: ~b~exited vehicle",5000,3);
                return 1;
            }
        }
Anyone know why?
Reply


Messages In This Thread
OnPlayerStateChange problem - by grand.Theft.Otto - 13.05.2011, 01:55
Re: OnPlayerStateChange problem - by ViperSniper - 13.05.2011, 02:18
Re: OnPlayerStateChange problem - by Donya - 13.05.2011, 02:44
Re: OnPlayerStateChange problem - by Infamous - 13.05.2011, 03:07
Re: OnPlayerStateChange problem - by ViperSniper - 13.05.2011, 03:49

Forum Jump:


Users browsing this thread: 1 Guest(s)