Version 2.1.1 • AttachRadarToPlayer(playerid, speedlimit); • DettachRadarToPlayer(playerid); • IsPlayerRadarAttached(playerid); Version 2.1.0 • GetPlayerSpeed(playerid, bool:speed); • GetVehicleSpeed(vehicleid); Version 2.0.0 • LoadStaticRadarsFromFile(const filename[]); Version 1.9.0 • SetRadarActivate(lrid, toggle); • SetRadarMaxSpeed(lrid, speed); • SetRadarRadius(lrid, Float:radius); • SetRadarPickup(lrid, pickupid); Version 1.8.0 • Radar can be switched to on and off. Version 1.7.0 • Flash alternative may be defined radar with or without flash. • Problems with flash fixed. • Natives renamed. • CallBack OnPlayerEnterRadar is now possible to define a single radar. Version 1.6.0 • Changes in SetTimer time. Version 1.5.0 • Small fixes. Version 1.4.0 • Changes in stocks names. Version 1.3.0 • CallBack OnPlayerEnterRadar now returns speed in which the player was on the radar. Version 1.2.0 • Pickup can be changed. • Radiation can be changed. • Errors with destroy the radar fixed. • Errors when changing the position of the radar fixed. Version 1.1.0 • Changes in variables names. Version 1.0.0 • First release.
native CreateRadar(Float:x, Float:y, Float:z, speedmax, radiation, pickup, activated, virtualword = -1);
native DestroyRadar(lrid);
native RadarExists(lrid);
native SetRadarPos(lrid, Float:x, Float:y, Float:z);
native SetRadarVirtualWorld(lrid, virtualworld);
native SetRadarActivate(lrid, toggle);
native SetRadarMaxSpeed(lrid, speed);
native SetRadarRadius(lrid, Float:radiacao);
native SetRadarPickup(lrid, pickupid);
native GetRadarPos(lrid, &Float:x, &Float:y, &Float:z);
native GetRadarVirtualWorld(lrid);
native LoadStaticRadarsFromFile(const filename[]);
native GetPlayerSpeed(playerid, bool:speed);
native GetVehicleSpeed(vehicleid);
native AttachRadarToPlayer(playerid, speedlimit);
native DettachRadarToPlayer(playerid);
native IsPlayerRadarAttached(playerid);
#include "LSR"
//Includes the functions of the include to your script.
public OnPlayerEnterRadar(playerid, speed, radarid)//Callback that's called when a player pass on radar above speed limit.
{
new string[128];//Array to keep the strings below.
if(radarid == radartest){format(string, sizeof(string), "[LSR:] You passed on my radar to %d km/h and lost $500.", speed);}//Message that will be sent to the player passed on radartest above speed limit.
else {format(string, sizeof(string), "[LSR:] You passed in any radar to %d km/h and lost $500.", speed);}//Message that will be sent to the player passed on radartest above speed limit.
SendClientMessage(playerid, 0xA9C4E4FF, string);//Send a message to the player.
GivePlayerMoney(playerid, -500);//Gets $500 of the player.
return 1;
}
goow work. |
NICE! god for roleplay servers! |
Very usefull, thanks. |
C:\SERVEUR - Blackwater\Serveur SAMP - RP 0.3x\pawno\include\LSR.pwn(368) : error 004: function "OnPlayerEnterRadar" is not implemented