How to make to player can enter in checkpoint only if he is in veh id 411 ?
#6

Ex: Your name bustern

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == 411)
    {
        new pname[50];
        if(GetPlayerName(playerid,pname,sizeof(pname) == strval("bustern")))
        {
            SendClientMessage(playerid,-1,"Welcome to Infernus");
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid,-1,"You't don't have access to use this vehicle");
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)