10.03.2012, 20:58
How can i make that if a player did something like /mission and he is in a car (Sadler) He gets some check points that he needs to go to and finally he gets 1000 dollars?
public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mission", cmdtext, true, 10) == 0) { if(GetPlayerVehicleID == YOUR vehID here!) SetPlayerCheckpoint(playerid, COORDINATES here, 3.0); return 1; } return 0; }
public OnPlayerEnterCheckpoint(playerid) { GivePlayerMoney(playerid, 1000); DisablePlayerCheckpoint(playerid); return 1; }
public OnPlayerEnterCheckpoint(playerid) { GivePlayerMoney(playerid, 1000); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, NEW coordinates, 3.0); return 1; }