20.08.2014, 09:42
My code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/work", cmdtext, true))
{
new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(IsPlayerInMission[playerid] >= 1)return SendClientMessage(playerid,-1,"You already have a mission!");
if (pvehiclemodel == 520 || pvehiclemodel == 511 || pvehiclemodel == 519)
{
PilotJob[playerid] = 1;
SetPlayerCheckpoint(playerid, -1301.9893,-347.4291,14.1484,40.0);
SendClientMessage(playerid, -1,"~g~Info: ~w~Mission started! Please follow the check point!");
GameTextForPlayer(playerid,"~w~Mission~g~Started!" , 3000, 3);
return 1;
}
SendClientMessage(playerid, -1,"{CE0000}You have to be on a plane to start the job!");
}
return 0;
}
but error is:
Still it does not show the checkpoint/ mission is not get started
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/work", cmdtext, true))
{
new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(IsPlayerInMission[playerid] >= 1)return SendClientMessage(playerid,-1,"You already have a mission!");
if (pvehiclemodel == 520 || pvehiclemodel == 511 || pvehiclemodel == 519)
{
PilotJob[playerid] = 1;
SetPlayerCheckpoint(playerid, -1301.9893,-347.4291,14.1484,40.0);
SendClientMessage(playerid, -1,"~g~Info: ~w~Mission started! Please follow the check point!");
GameTextForPlayer(playerid,"~w~Mission~g~Started!" , 3000, 3);
return 1;
}
SendClientMessage(playerid, -1,"{CE0000}You have to be on a plane to start the job!");
}
return 0;
}
but error is:
Still it does not show the checkpoint/ mission is not get started


