05.02.2011, 14:54
pawn Код:
if (health < 1000)
{
DisablePlayerRaceCheckpoint(playerid);
DestroyDynamicRaceCP(dtcp[19]);
DestroyVehicle(dscar);
IsInDrivingTest[playerid] = 0;
SendClientMessage(playerid, red,"This vehicle has too much damaged! Failed.");
GameTextForPlayer(playerid, "~r~Failed!",6000,1);
dvlicense[playerid] = 0;
return 1;
}
AND
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1019.9844,1371.1270,10.4467))
{
//DIALOG_STYLE_LIST
PlayerPlaySound(playerid, 1054 , 0.0, 0.0, 10.0);
if(checkpointid == dtcp[18])
{
DisablePlayerRaceCheckpoint(playerid);
SendClientMessage(playerid,White,"Now head back to driving school!");
DestroyDynamicRaceCP(dtcp[18]);
}
dtcp[19] = CreateDynamicRaceCP(1, 1140.0406,1370.9948,10.3881 , 0, 0, 0, 5.0, -1, -1, -1, 99999);
}
please help when he enteres this cehckpoint this client messages i see it twice PLEASE HELP!
no errors no warning!