[Include] SpeedCapture
#1

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
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);
Solidifles link: http://www.solidfiles.com/d/e00320538b/
pastebin link: http://pastebin.com/QgabeHkk
Reply


Messages In This Thread
SpeedCapture - by UltraScripter - 23.06.2015, 11:23
Re: Speecapture - by LazyB0y - 23.06.2015, 11:26
Re: Speecapture - by UltraScripter - 23.06.2015, 11:26
Re: SpeedCapture - by Jakwob - 23.06.2015, 17:17
Re: SpeedCapture - by Crayder - 23.06.2015, 17:30
Re: SpeedCapture - by ZaBraNjeNi - 24.06.2015, 12:11
Re: SpeedCapture - by UltraScripter - 24.06.2015, 12:54
Re: SpeedCapture - by kyriakos587 - 24.06.2015, 22:01
Re: SpeedCapture - by UltraScripter - 24.06.2015, 22:03
Re: SpeedCapture - by Private200 - 25.06.2015, 13:48

Forum Jump:


Users browsing this thread: 3 Guest(s)