Quote:
|
Originally Posted by luigifan9
Quote:
|
Originally Posted by Baked-Banana
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(vehicleid) == 417) { SendClientMessage(playerid, c_green, "Type /rentcar to rent this or /nty to be ejected :D"); TogglePlayerControllable(playerid, 0); return 1; } if(GetVehicleModel(vehicleid) == 512) { SendClientMessage(playerid, c_green, "Type /rentcar to rent this or /nty to be ejected :D"); TogglePlayerControllable(playerid, 0); return 1; } return 1; }
That's the correct version. For one thing, you needed to use the function GetVehicleModel which would have returned the actual vehicle model not the vehicle id which is what you were doing. Secondly, you didn't need to get the vehicle id because it's already one of the callback's parameters. Try that out though and it should work.
|
ty so much, learning every day ya know 
|
Yeah I've been there. (and am still there)