06.06.2013, 18:46
Okay so sofar I have this
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?
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;
}

