Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Takže define tutorial
- a máme ho tu..
- define je jako že si můžeme nadefinovat něco
- Třeba barvu když potřebujete
- Kratké define ale složité:
- #define r "{FF0000}" červená
- #define g "{00FF00}" zelená
- #define w "{FFFFFF}" Bílá
- #define c "{00FFFF}" Modrá
- Existuje aj define na COLOR_RED nebo BARVA_CERVENA
- define:
- #define COLOR_GREY 0xBEBEBEAA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_RED 0xFF0000FF
- #define BARVA_SEDA 0xAFAFAFAA
- #define BARVA_BILA 0xEFEFF7AA
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_DARKBLUE 0x2641FEAA
- #define BARVA_SMODRA 0x33CCFFAA
- #define BARVA_HNEDA 0x993300AA
- #define BARVA_ORANZOVA 0xFF9933AA
- #define BARVA_RUZOVA 0xFF66FFAA
- #define BARVA_ZELENA 0x00FF33FF
- #define BARVA_ZLUTA 0xCCFF00FF
- #define BARVA_MODRA 0x4169FFAA
- #define BARVA_MODRA2 0x0088FFFF
- #define BARVA_CERVENA 0xE10000AA
- Taky jsou skratky na příkazy v pawně
- define:
- #define SCM SendClientMessage
- #define SCMTA SendClientMessageToAll
- #define GPW GivePlayerWeapon
- #define SPH SetPlayerHealth
- #define SPA SetPlayerArmour
- #define SPS SetPlayerSkin
- #define IPA IsPlayerAdmin
- #define IPC IsPlayerConnected
- Místo třeba GivePlayerWeapon psát GPW
- Existuje i define na playerid
- #define p playerid
- Na povolání používám
- define:
- #define IsPlayerInSphere(%0,%1,%2,%3,%4) IsPlayerInRangeOfPoint(%0,%4,%1,%2,%3)
- Pokud chcete se naučit dcmd
- define:
- #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
- Naučit CMD:příkaz?
- Potřebujete include
- include zcmd
- Download: http://ulozto.sk/x39Ufgtn/zcmd-inc
- FS nebo GM
- může mít i počet hráču na serveru
- define:
- #define MAX_PLAYERS_EX 500
- Děláte TDM?
- Já sem použival
- define:
- #define CLASS 1204
- #define CLASS1 1205
- FILTERSCRIPT DEFINE
- #define FILTERSCRIPT
- Pragma?
- #pragma tabsize 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement