How to show this for the driver and the passenger ?
#1

Well ,I've been trying to Make a code for OnPlayerEnterVehicle for the taxi drivers which shows the Passenger's name when he enters the taxi. Well ,this is the code which I made
pawn Код:
if(IsAnTaxi(vehicleid) || IsAnBus(vehicleid))
    {
        foreach(Player, i)
        {
            if(ispassenger)
            {
                new string[28];
                format(string, sizeof(string), "Passenger %s Entered the taxi with fare %d", GetPlayerNameEx(playerid), TransportValue[playeird]);
                ProxDetector(2.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
                return 1;
            }
        }
}
It does send the message to the driver and the passenger...But it even sends it to nearby players though.
Can someone help me with it ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)