samp.directory
← Skrypty i biblioteki

wuzi/radars

A SA:MP library to make speed traps

Biblioteka★ 5zaktualizowano paź 2019MITPawn
Otwórz na GitHubie
Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

README.md

Radars

A SA:MP library containing functions to create speed radars to detect when a player exceeds the speed limit.

Creating a radar

You can use the radar creator or place the object id 18880 with samp-map-editor and get the coordinates.

Example

new gRadar;

public OnGameModeInit()
{
    gRadar = CreateRadar(2156.21, -2036.12, 36.11,   0.00, 0.00, 0.00);
    return 1;
}

public OnPlayerEnterRadar(playerid, radarid, Float:speed)
{
    switch(radarid)
    {
        case gRadar:
        {
            GameTextForPlayer(playerid,"~r~You were fined!", 5000, 3);
            GivePlayerMoney(playerid, -500);
        }
    }
    return 1;
}

Functions

Check wiki for a list with functions.

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

wuzi/radars: Biblioteka SA-MP | samp.directory