26.10.2010, 16:42
Quote:
Under what callback are you using it? If it's custom, when and how is it called?
|
Код:
IsPlayerPizzaDeliverer(playerid, vehicleid) // This goes into: OnPlayerEnterVehicle { for(new i = 0; i <MAX_PIZZABIKES; i++) { if(PlayerInfo[playerid][pJob] != 1 && vehicleid == PizzaJobVehicles[i]) { SendClientMessage(playerid, COLOR_RED, "You don't have the keys of this Vehicle"); SendClientMessage(playerid, COLOR_RED, "So you decide to step off the Pizzaboy"); RemovePlayerFromVehicle(playerid); } } return 1; }
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { IsPlayerPizzaDeliverer(playerid, vehicleid); return 1; }