Simple job help
#1

hi guys. im taking english classes so i hope my english is getting better

anyways, i downloaded this script:

pawn Код:
public OnGameModeInit()
{
    CreateObject(1318,-64.00827789,-1120.72668457,0.71267354,0.00000000,0.00000000,332.00000000); //object(arrow) (1)
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    GivePlayerMoney(playerid, 7500);
    SendClientMessage(playerid, blue, "Congratulations, you have earned 7500");
    DisablePlayerCheckpoint(playerid);
    return 1;
}

COMMAND:work(playerid, cmdtext)
{
    if (!IsPlayerInRangeOfPoint(playerid, 7.0, -64.1551,-1120.6709,1.0781))
    {
        return SendClientMessage(playerid, COLOR_RED, "You're not in range of the job");
    }
    SendClientMessage(playerid, blue, "Welcome to work!");
    SendClientMessage(playerid, yellow, "Please drive to the checkpoint to recieve your reward.");
    new thevehicle = CreateVehicle(498, -79.2382, -1128.1711, 1.0781, 0.0, 0, 0, 5000);
    PutPlayerInVehicle(playerid, thevehicle, 0);
    SetPlayerCheckpoint(playerid, 1827.8311,-1075.7113,23.9317, 4.0);
    return 1;
}
its a simple job script. so as you can see if player is in the range of the arrow they can type in /work and they can start the work in the truck ID 498. so now the player have to drive to the check point. when he gets in checkpoint, he just needs to go into the checkpoint to get money. but how i make it so if player is NOT in vehicle ID 498, it will say "you must be in {that speicfic vehicle}!" or something like that? and if player is in vehicle ID 498, it will give player money. can someone help me?
Reply


Messages In This Thread
Simple job help - by TheDiscussionCafe - 27.05.2012, 21:33
Re: Simple job help - by FalconX - 27.05.2012, 21:37
Re: Simple job help - by TzAkS. - 27.05.2012, 21:37
Re: Simple job help - by TheDiscussionCafe - 27.05.2012, 21:48
Re: Simple job help - by [ABK]Antonio - 27.05.2012, 21:54
Re: Simple job help - by FalconX - 27.05.2012, 21:54
Re: Simple job help - by TheDiscussionCafe - 27.05.2012, 21:59
Re: Simple job help - by FalconX - 27.05.2012, 22:00
Re: Simple job help - by CidadeNovaRP - 27.05.2012, 22:04
Re: Simple job help - by TheDiscussionCafe - 27.05.2012, 22:31

Forum Jump:


Users browsing this thread: 1 Guest(s)