Help me make cmd (Vortex2) + rep
#2

pawn Code:
if(newstate == PLAYER_STATE_DRIVER) // In OnPlayerStateChange, when he just entered the vehicle.
{
    new skin = GetPlayerSkin(playerid);
    switch(GetVehicleModel(GetPlayerVehicleID(playerid))
    {
        case 427, 596, 598, 597, 599: // Here the vehicle models
        {
                if(skin != 280) // Add more skins yourself
                {
                    SendClientMessage(playerid, COLOR_RED, "You have to be a cop to enter this car!"); // Send a message he isn't a cop
                    RemovePlayerFromVehicle(playerid); // Remove him from the vehicle
                }
        }
    }
}
Reply


Messages In This Thread
Help me make cmd (Vortex2) + rep - by trapped1 - 31.01.2012, 16:55
Re: Help me make cmd (Vortex2) + rep - by Jochemd - 31.01.2012, 17:37
Re: Help me make cmd (Vortex2) + rep - by trapped1 - 31.01.2012, 18:02
Re: Help me make cmd (Vortex2) + rep - by Jochemd - 01.02.2012, 14:07
Re: Help me make cmd (Vortex2) + rep - by [TC]XxJuggaloxX - 02.02.2012, 09:34

Forum Jump:


Users browsing this thread: 1 Guest(s)