31.10.2010, 18:14
why not explain more clear
EDIT: for cops to enter vehicle the top one was the team not allowed the bottom one is the team allowed to enter
pawn Код:
public OnPlayerUpdate(playerid)
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(gTeam[playerid] == your team) // team u want to remove
{
if(vehicle > 411) // car id for example i used a infernus
{
RemovePlayerFromVehicle(playerid); // removes player from vehicle
SendClientMessage(playerid, your color, "SERVER: You can not enter this vehicle"); // message you want to send to the player that is not in your team
}
}
}
pawn Код:
public OnPlayerUpdate(playerid)
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(gTeam[playerid] == your team) // team that is allow to enter the car
{
if(vehicle > 411) // car id for example i used a infernus
{
SendClientMessage(playerid, your color, "SERVER: Welcome to your vehicle"); // message for the person allow to enter
}
}
}