Need Help with /calltaxi
#4

Quote:
Originally Posted by Reklez
Посмотреть сообщение
Create a stock function for Taxi Drivers like this

pawn Код:
stock MessageToTaxiDriver(playerid, color, const string[])
{
   for(new i = 0; i < MAX_PLAYERS; i++) {
       if(IsPlayerConnected(i) == 1) {
           if(pInfo[playerid][JobMember] == 1) {
               SendClientMessage(playerid, color, string);
               SetPlayerMarkerForPlayer(playerid, i, COLOR_RED);
           }
       }
   }
   return 1;
}
that is example only.
This would fail.

Reason: It would set the marker for taxi drivers, given that variable is the taxi job, but it would set a marker for every taxi driver connected.

You need to make a variable, so that if they are calling a taxi, it sets the checkpoint for the caller, not the taxi drivers.
Reply


Messages In This Thread
Need Help with /calltaxi - by GAMER_PS2 - 25.03.2012, 04:38
Re: Need Help with /calltaxi - by Reklez - 25.03.2012, 04:40
Re: Need Help with /calltaxi - by GAMER_PS2 - 25.03.2012, 04:40
Re: Need Help with /calltaxi - by Joshb93 - 25.03.2012, 06:56
Re : Need Help with /calltaxi - by Ultrascipter - 25.03.2012, 07:59

Forum Jump:


Users browsing this thread: 1 Guest(s)