Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <Colorchat>
- #include <cstrike>
- #include <fun>
- public plugin_init() {
- register_clcmd("say /fw","RanGen")
- register_clcmd("say","GetNumber")
- }
- new bool:check = true;
- new rnd;
- public RanGen(id)
- {
- if(check)
- {
- rnd = random_num(1, 999999)
- set_hudmessage(0, 255, 255, -1.0, 0.75, 0, 6.0, 12.0);
- show_hudmessage(0, "%i", rnd)
- }
- if(!check)
- {
- ColorChat(id, GREEN, "^1Other ^3FW-System ^1Already ^4Running")
- }
- check = true;
- }
- public GetNumber(id)
- {
- new szMessage[192];
- read_args(szMessage, charsmax(szMessage));
- remove_quotes(szMessage);
- new num = str_to_num(szMessage);
- if(num == rnd)
- {
- cs_set_user_team(id);
- spawn(id);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement