Vehicle checking
#1

OnPlayerEnterCheckpoint
Код:
            case 35:
            {
            	if(IsPlayerInCheckpointEx(playerid, cpid))
                {
                	if(IsPlayerInVehicle(playerid, 440)) // if vehicle == 440
    				{
				        SetTimerEx("kraunamgps", 7000, false, "i", playerid);
				        TogglePlayerControllable(playerid,false);
				        SendClientMessage(playerid,-1,"{FFC400}»{949494} Praљome palaukti, kraumi GPS'ai.");
				    }
				    else // if vehicle not 440
				    {
				    	SendClientMessage(playerid,-1,"{FFC400}»{949494} walink");
				    }
                }	
            }
The problem is that i'm sitting in 440 vehicle, but I dont get the TimerEx ant TogglePlayerControllble. Maybe someone knows the problem?
Reply


Messages In This Thread
Vehicle checking - by bogushas - 25.01.2014, 14:13
Re: Vehicle checking - by Rifa4life - 25.01.2014, 14:40
Re: Vehicle checking - by bogushas - 25.01.2014, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)