Особенности:
- Неограниченное кол-ство знаков
- 23 дорожных знака
Это не пользовательские объекты, все игроки на сервере видят их.
* MAX_SIGNS = 500 (можете сменить)
Функции
PHP код:
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)
PHP код:
DestroyTrafficSign(signid)
signid - The signal (the ID, not the type of signal)
PHP код:
IsValidTrafficSign(signid)
signid - The signal (the ID, not the type of signal)
Знаки:
PHP код:
#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
Автор: adri1
Incognito (streamer)
Ссылка: Pastebin
Streamer: Кликабельно