20.06.2014, 13:20
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
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 ?
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;
}
}
}
Can someone help me with it ?