Osetin
28.03.2014, 23:23
Особенности:
- Неограниченное кол-ство знаков
- 23 дорожных знака
Это не пользовательские объекты, все игроки на сервере видят их.
* MAX_SIGNS = 500 (можете сменить)
Функции
CreateTrafficSign(signid, Float:x, Float:y, Float:z, Float:rz, Float:viewdistance = 200.0, string[] = "")
signid - Sign id
Float:x - Position X
Float:y - Position Y
Float:z - Position Z
Float:rz - Angle
Float:viewdistance
string[] - (maximum speed, minimum speed and maximum tons)
returns the ID of the signal (to be destroyed later)
DestroyTrafficSign(signid)
signid - The signal (the ID, not the type of signal)
IsValidTrafficSign(signid)
signid - The signal (the ID, not the type of signal)
Знаки:
#define SIGN_STOP 0
#define SIGN_YIELD 1
#define SIGN_PROHIBITED 2
#define SIGN_PROHIBITED2 3
#define SIGN_CROSSWALK 4
#define SIGN_MAXVELOCITY 5
#define SIGN_MINVELOCITY 6
#define SIGN_MAXTONNE 7
#define SIGN_WALKERONLY 8
#define SIGN_BIKEONLY 9
#define SIGN_BIKEPROHIBITED 10
#define SIGN_PROHIBITEDDIR1 11
#define SIGN_PROHIBITEDDIR2 12
#define SIGN_PROHIBITEDDIR3 13
#define SIGN_PROHIBITEDDIR4 14
#define SIGN_GODIR1 15
#define SIGN_GODIR2 16
#define SIGN_GODIR3 17
#define SIGN_GODIR4 18
#define SIGN_TAXI 19
#define SIGN_BUS 20
#define SIGN_PARKING1 21
#define SIGN_PARKING2 22
http://imageshack.com/a/img560/7600/i0cc.png
http://imageshack.com/a/img35/5875/9fb1.png
Автор: adri1
Incognito (streamer)
Ссылка: Pastebin (http://pastebin.com/x6SWzZu3)
Streamer: Кликабельно (http://forum.sa-mp.com/showthread.php?t=102865)
- Неограниченное кол-ство знаков
- 23 дорожных знака
Это не пользовательские объекты, все игроки на сервере видят их.
* MAX_SIGNS = 500 (можете сменить)
Функции
CreateTrafficSign(signid, Float:x, Float:y, Float:z, Float:rz, Float:viewdistance = 200.0, string[] = "")
signid - Sign id
Float:x - Position X
Float:y - Position Y
Float:z - Position Z
Float:rz - Angle
Float:viewdistance
string[] - (maximum speed, minimum speed and maximum tons)
returns the ID of the signal (to be destroyed later)
DestroyTrafficSign(signid)
signid - The signal (the ID, not the type of signal)
IsValidTrafficSign(signid)
signid - The signal (the ID, not the type of signal)
Знаки:
#define SIGN_STOP 0
#define SIGN_YIELD 1
#define SIGN_PROHIBITED 2
#define SIGN_PROHIBITED2 3
#define SIGN_CROSSWALK 4
#define SIGN_MAXVELOCITY 5
#define SIGN_MINVELOCITY 6
#define SIGN_MAXTONNE 7
#define SIGN_WALKERONLY 8
#define SIGN_BIKEONLY 9
#define SIGN_BIKEPROHIBITED 10
#define SIGN_PROHIBITEDDIR1 11
#define SIGN_PROHIBITEDDIR2 12
#define SIGN_PROHIBITEDDIR3 13
#define SIGN_PROHIBITEDDIR4 14
#define SIGN_GODIR1 15
#define SIGN_GODIR2 16
#define SIGN_GODIR3 17
#define SIGN_GODIR4 18
#define SIGN_TAXI 19
#define SIGN_BUS 20
#define SIGN_PARKING1 21
#define SIGN_PARKING2 22
http://imageshack.com/a/img560/7600/i0cc.png
http://imageshack.com/a/img35/5875/9fb1.png
Автор: adri1
Incognito (streamer)
Ссылка: Pastebin (http://pastebin.com/x6SWzZu3)
Streamer: Кликабельно (http://forum.sa-mp.com/showthread.php?t=102865)