31.10.2010, 17:57
ok i want to make it fair, only cops can enter police vehicles, like Police Maveric, LSPD Car, Swat Van........
thanks
thanks
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
}
}
}
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
}
}
}