24.10.2010, 17:09
First off, this code is wrong:
It's meant to be:
Second of all, use SetPlayerRaceCheckpoint and use the callback OnPlayerEnterRaceCheckpoint.
pawn Код:
public TrashMasterCar(vehicleid)
{
if(vehicleid == 408)
{
return 1;
}
return 1; // it will always return 1
}
pawn Код:
public TrashMasterCar(vehicleid)
{
if(vehicleid == 408) return 1; // if vehicleid is 408 return 1 and exit the function
return 0; // if not return 0 and exit the function
}