04.10.2014, 11:28
Hello. Sometimes when I sit on car I get spammed by text you don't have a driver license? Be careful and watch out for police and it's just spamming and player most exit from server and then enter again. This code is under Onplayerstatechange
pawn Код:
if(!IsAPlane(GetVehicleModel(GetPlayerVehicleID(playerid))) && !IsABoat(GetVehicleModel(GetPlayerVehicleID(playerid))) && !VoziloJeBiciklo(GetVehicleModel(GetPlayerVehicleID(playerid))))
{
if(PlayerInfo[playerid][DriverLicense] == 0) SendClientMessage(playerid,COLOR_LIGHTRED,"You don't have a driver license? Be careful and watch out for police!");
Speedo(playerid,1);
new string[128];
format(string,sizeof string,"%.1fl",Fuel[GetPlayerVehicleID(playerid)]);
TextDrawSetString(Speedometar0[playerid],string);
}