17.03.2018, 15:24
Nothing at all, i didnt give you a solution but a suggestion.
You could use it in your command like this:
and for the errors.
SetplayerCheckPoint only required 3 parameters i guess.
Also, dafuq is "chat"?
You could use it in your command like this:
PHP код:
CMD:mission(playerid)
{
if (IsPlayerInCheckpoint(playerid))
{
DisablePlayerCheckpoint(playerid)
if(MissionID == 1)
{
//start first mission
StartMission(playerid, 1);
}
else if(MissionID == 2)
{
// start second mission
StartMission(playerid, 2);
}
else if(MissionID == 3)
{
//start third mission
StartMission(playerid, 3);
}
}
else return SendClientMessage(playerid, -1, ""chat" Go to Military Base to get a mission");
}
PHP код:
else return SendClientMessage(playerid, -1, ""chat" You need to be on the right place !");
SetPlayerCheckpoint(playerid, -216.8123,984.9861,19.3925,94.2272);
PHP код:
else
{
SendClientMessage(playerid, -1, ""chat" You need to be on the right place !");
SetPlayerCheckpoint(playerid, -216.8123,984.9861,19.3925);
}