31.12.2010, 07:15
this is a teamcheck for the cops to see if they are on the right team
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new vehid = GetPlayerVehicleID(playerid);
new teamid = GetPlayerTeam(playerid);
if(vehid == 596)
{
if(teamid == 3)
SendClientMessage(playerid, COLOR_RED, "You Are Not In The {6600FF}LSPD, {CC0000}You Cannont Drive This");
RemovePlayerFromVehicle(playerid);
return 1;
}
else if(teamid == 3)
{
SendClientMessage(playerid, COLOR_ROYALBLUE, "You Are In The {6600FF}LSPD, {99FF00}You Can Drive This");
return 1;
}
return 1;
}