Checkpoints[+rep]
#1

Hello I made a script where a guy types /employment and he employs himself as a lawnmower. Then he types /mowland to start doing job. My problem is: How do I make checkpoints? I got coordinates for checkpoints, but how do I make one, and how do I make when he passes through one, the second one appears and so on until the last one where he receives a message like: Job well done, here's your pay 500$ and it gives the money to him? I made this script about the job it may help:

TO EMPLOY:

PHP код:
CMD:employmower(playeridparams[])
{
    if(
lawnmower[playerid] == 1SendClientMessage(playeridCOLOR_RED,"[ERROR]{FFFFFF}You're already employed as lawn-mower!");
    else if(
employment[playerid] == 1SendClientMessage(playeridCOLOR_RED"You already have a job!");
    else if(!
IsPlayerInRangeOfPoint(playerid,3,1895.7168,1729.1393,10.8153)) SendClientMessage(playeridCOLOR_RED"[ERROR]{FFFFFF}You're not near mowers' hut");
    else
    {
        
SendClientMessage(playeridCOLOR_LIGHTGREEN"[SUCCESS!]{FFFFFF}You've employed yourself as a lawnmower!");
        
employment[playerid] = 1;
        
lawnmower[playerid] = 1;
    }
    return 
1;

To start mowing:


PHP код:
CMD:mowland(playeridparams[])
{
new 
vid GetPlayerVehicleID(playerid);
if(
lawnmower[playerid] == 0SendClientMessage(playeridCOLOR_RED"[ERROR]{FFFFFF}You're not employed as lawnmower!") ;
else if(!
IsPlayerInRangeOfPoint(playerid5,1878.5900,1758.6154,10.4470)) SendClientMessage(playeridCOLOR_RED"[ERROR]{FFFFFF}You're not near mowers' job starting line!");
else if(
vid == 572 || IsPlayerInRangeOfPoint(playerid,5,1878.5900,1758.6154,10.4470))
{
job[playerid] = 1;
SendClientMessage(playeridCOLOR_LIGHTGREEN"[SUCCESS!]{FFFFFF}You've started lawnmowing. Go through checkpoints to finish your job!");
}
return 
1;

How do I make at this mowland that it displays checkpoints? Will be glad to give reputation!
Reply


Messages In This Thread
Checkpoints[+rep] - by Bek_Loking - 25.06.2014, 13:43
Re : Checkpoints[+rep] - by Clad - 25.06.2014, 13:45
Re: Checkpoints[+rep] - by Rittik - 25.06.2014, 13:47
Re: Checkpoints[+rep] - by Bek_Loking - 25.06.2014, 13:48
Re : Checkpoints[+rep] - by Clad - 25.06.2014, 13:49
Re: Checkpoints[+rep] - by Bek_Loking - 25.06.2014, 14:03
Re : Re: Checkpoints[+rep] - by Clad - 25.06.2014, 14:04
Re: Checkpoints[+rep] - by Rittik - 25.06.2014, 14:06
Re: Checkpoints[+rep] - by Bek_Loking - 25.06.2014, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)