03.09.2011, 16:16
I made a short code that if a player enters the vehicle without a license he will get a warning. But also the persons who aren't driving are getting that message. I want that only the person who is driving is getting that message. Someone TIPS?
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(PlayerInfo[playerid][Driverlic] == 0) return SendClientMessage(playerid,COLOR_ORANGE,"[WARNING]"#COL_LRED" You are driving without a driver license!");
return 1;
}