01.07.2017, 23:56
(
Последний раз редактировалось GraviTyh; 02.07.2017 в 01:01.
)
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);
}
}