21.03.2010, 20:58
I maded forward of license checkpoints
I added it to OnPlayerEnterCheckpoint
and after i maded the public of the CheckForLicenseTestCheckpoint like this:
When i up on the checkpoint , the checkpoint disappear and a new checkpoint isn't creating can anyone help me?
Код:
forward CheckForLicenseTestCheckpoint(playerid, tmpcar);
Код:
new tmpcar = GetPlayerVehicleID(playerid); CheckForLicenseTestCheckpoint(playerid, tmpcar);
Код:
public CheckForLicenseTestCheckpoint(playerid, tmpcar) { tmpcar = GetPlayerVehicleID(playerid); if(DrivingCar(tmpcar) && PlayerToPoint(12.0, playerid,329.5655,-1536.8867,32.9324)) { if (Test[playerid] == 3) { PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); SetPlayerCheckpoint(playerid,343.8846,-1646.0770,32.7906,7.0); } } else if(DrivingCar(tmpcar) && PlayerToPoint(12.0, playerid,343.8846,-1646.0770,32.7906)) { if (Test[playerid] == 3) { PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,809.3568,-1674.4735,13.1162,7.0); } } }