Dont read this post
#8

This is what i use if players enter wrong car for their job. This will make it so they do NOT enter AND it sends a message, very useful.

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(vehicleid) == 432 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 520)
    {
    if(ispassenger)
        {
        return 1;
        }
    else
    {
        SendClientMessage(playerid, c_r, "[ ! ] Nobody can enter these vehicles !");
        GetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ);
        SetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ);
        return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)