Quote:
Originally Posted by GraviTyh
Puedes probar definiendo el checkpoint como en este pequeсo ejemplo
pawn Код:
new CheckCamion[MAX_PLAYERS]
COMMAND:cargarcamion(playerid) { CheckCamion[playerid]=1; if(CheckCamion[playerid]){ SetPlayerCheckpoint(playerid, Checkpoint1, 7.0);} return 1; }
public OnPlayerEnterCheckpoint(playerid) { if(CheckCamion[playerid]) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 445) { CongelarEx(playerid); jobcamionero = 1; CheckCamion[playerid]=0; SetPlayerCheckpoint(playerid, 2058.3142,-2092.4023,9.9832, 10); new name[MAX_PLAYER_NAME], string[48]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s ahora es conductor, name ); SendClientMessageToAll(COLOR_RED, string); } }
|
bueno si aparece el chekpoint pero al entrar no da los codigos