23.06.2015, 11:23
Hi everyone i created new include that gets vehicle speed if the player is over the speed limit or not
hare some example how to use
you also can get vehicle speed
Solidifles link: http://www.solidfiles.com/d/e00320538b/
pastebin link: http://pastebin.com/QgabeHkk
hare some example how to use
pawn Код:
//Usage:
CaptureSpeed(playerid, vehicleid, Float:limit, money, message[], color);
GetVehicleSpeed(vehicleid);
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInRangeOfPoint(playerid, 40.0, 2048.4485, 1233.3395, 10.4040))
{
CaptureSpeed(playerid, vehicleid, 100, -200, "You drive more than 100 kmh -$200!.", 0xFF0000FF);
}
you also can get vehicle speed
pawn Код:
new Str[256], vehicleid = GetPlayerVehicleID(playerid);
format(Str, 256, "Kmh %i", GetVehicleSpeed(vehicleid));
SendClientMessage(playerid, -1, Str);
pastebin link: http://pastebin.com/QgabeHkk