08.12.2014, 12:53
Actually, when you have if(, you need to put = two times. ==. Well, you missed it.
Correct code:
EDIT: Didn't saw the above guy, sorry. I didn't refreshed page.
Correct code:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == Veh || Veh2 || Veh3 || Veh4 || Veh5 || Veh6 || Veh7 || Veh8 || Veh9 || Veh10 || Veh11)
{
if(PlayerInfo[playerid][pFaction] >= 1)
{
SendClientMessage(playerid, -1, ""COL_CYAN"*"COL_GREY"Usli ste u sluzbeno vozilo.");
}
}
else
{
SendClientMessage(playerid, -1, ""COL_CYAN"*"COL_GREY"Ne mozete voziti ovo vozilo jer niste u sluzbi.");
RemovePlayerFromVehicle(playerid);
}
return 1;
}