OnPlayerStateChange
#1

~~~~~~
Reply
#2

pawn Код:
if (newstate == PLAYER_STATE_DRIVER)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(AdminCar[vehicleid] == 1)
    {
        if(!IsCnRAdmin(playerid))
        {
            RemovePlayerFromVehicle(playerid);
            GameTextForPlayer(playerid, "~r~This Is An Admin Vehicle~n~~p~Ejected", 5000, 3);
        }
    }
}
Reply
#3

~~~~~~
Reply
#4

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
Thanks, it works but i don't get the gametext, why?
But it does eject the player, correct?
Reply
#5

~~~~~~
Reply
#6

~~~~~~
Reply
#7

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
Got a little problem,

I have a gametext there it shows which car it is when you enter the vehicle, the eject gametext doesn't appear because of this, what can I do?
You may only use 1 Gametext at the time, try to use TextDraw.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)