11.03.2011, 14:25
Hello, I try to make a script where the player will be ejected from an hunter if he wasn't in the army group (lieutenant) that I previously set.
But when I enter in a vehicule it said just "You are not a military" and I'm not ejected from the vehicule (I'm not in the army group) PLease help thanks 
Sorry 4 my bad English
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == 425) {
if(Rank[playerid] = 4) { // (no problem here)
{
SendClientMessage(playerid,COLOR_GREEN,"Welcome To The Hunter!");
}
}
else SendClientMessage(playerid,COLOR_RED,"You Are Not a lieutenant");
GetPlayerVehicleID(playerid); //problem here
RemovePlayerFromVehicle(playerid); //problem here
}
return 1;
}

Sorry 4 my bad English