Make checkpoints on players?
#5

Okay so sofar I have this

pawn Код:
CMD:call(playerid, params[])
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SetPlayerCheckpoint(playerid, x, y, z, 3.0);
    new string[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    GivePlayerMoney(playerid, 100);
    format(string,sizeof string, "%s Is requesting a taxi!",pName);
    SendClientMessageToAll(0x059EBEFF,string);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    if(taxijob[playerid] == 1)
    {
        DisablePlayerCheckpoint(playerid);
        return 1;
    }
    return 0;
}
How would I make it so that someone in the job can accept the call and only they can see the check point. and then what functions could i use to make it so when the player enters the taxi they just called, it will pay the driver cab fare? I know i would use the "onplayerentervehcile" callback right?
Reply


Messages In This Thread
Make checkpoints on players? - by xXitsgodzillaXx - 06.06.2013, 17:12
Re: Make checkpoints on players? - by Goldilox - 06.06.2013, 17:48
Re: Make checkpoints on players? - by MP2 - 06.06.2013, 17:56
Re: Make checkpoints on players? - by xXitsgodzillaXx - 06.06.2013, 18:31
Re: Make checkpoints on players? - by xXitsgodzillaXx - 06.06.2013, 18:46
Re: Make checkpoints on players? - by Vince - 06.06.2013, 18:55
Re: Make checkpoints on players? - by xXitsgodzillaXx - 06.06.2013, 19:14

Forum Jump:


Users browsing this thread: 1 Guest(s)