22.02.2010, 22:24
GetVehicleModel is used incorrect i guess.. + it needs some params
GetVehicleModel(vehicleid) .... So in your use must be
And also when you're using the funcstion you should use this
such as:
GetVehicleModel(vehicleid) .... So in your use must be
Код:
public IsAGarbageTruck(carmodel)
{
if(GetVehicleModel(carid) == 408)
{
return 1;
}
return 0;
}
such as:
Код:
public OnPlayerEnterVehicle(playerid,vehicleid)
{
if(IsAGarbageTruck(GetVehicleModel(vehicleid)))
{
// Your stuff here if player enter in garbage truck
return 1;
}

