[FilterScript] [Blue Seas]Event System v.1!
#1

Hello there buddies, after releasing my Afk system, i'd to like to release this too, its kinda elegant system, easy, simple and professional.

Commands:
/cevent [Event name] [Weapon id] [Ammo] [Reward (Money)] - to make the event
/ejoin - to join the event
/sevent - to start the event
/ewinner - to announce the event winner, and give him/her his/her reward, and it will end the event in the same time (and spawn all, reset all's weapons)
/eannounce - to announce the event, name, and reward in the chat!
/eventlist - to check who's still alive in the event (Dialog work)



Menu Commands:
/Eventors - Viewing the online server event's management!
/Seteventor - Working if you're rcon or level 3 eventor (EVENT'S MANAGER)


Ranks:

1- Events manager
2- Events supervisor
3- Events planner

rank 2,3 are available to manage events, rank 1 can set eventors (/seteventor)




Hope you liked it, by the way also, when you make the event command, it will set the event position in the same position you're standing on, it's safe enough, cant be abused, and fun alot!

Example: /cevent 24 900 1000000
(deagle, 900 ammo, 1million)

then do /eannounce for 5 times, to let the people see the event, and give them time to /ejoin, then when you see them enough to run the event, do /sevent (start event), and it will automatically start!



[IMPORTANT]: TO AVERT ABUSING THE SYSTEM, WITH /WEAPONS COMMANDS! YOU'VE TO ADD THIS CODE UNDER OnPlayerCommand CALLBACK ((IN YOUR GENUINE GAMEMODE))!

EXAMPLE:

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
   if(
InEvent[playerid] == 1) return SendClientMessage(playerid, -1" ");
 return 
1;

((I DIDNT ADD THIS IN THE FS BECAUSE IT MAY CAUSE MUCH BUGS!))

If you wish for any inquiry reply here!

Special thanks to, ****** For ZCMD, (SSCANF), and The forum tutorials, in which really helped me in.


DOWNLOAD: http://pastebin.com/9bQ5XHJg
Reply
#2

Nice one +rep
Reply
#3

Good job +REP
Reply
#4

There are many code mistakes. I just pointed out some of them:-
- Indent fucked up.
- Commands works only for admins because of this check:
PHP код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"[ServerBoT]{FFFFFF}You aint authorised to use this command!"); 
- Using very old looping method:
PHP код:
for(new 0MAX_PLAYERSi++) 
Other than that, good work.
Reply
#5

Fine, thanks guys.
Reply
#6

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
There are many code mistakes. I just pointed out some of them:-
- Indent fucked up.
- Commands works only for admins because of this check:
PHP код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"[ServerBoT]{FFFFFF}You aint authorised to use this command!"); 
- Using very old looping method:
PHP код:
for(new 0MAX_PLAYERSi++) 
Other than that, good work.
Ok dude, lel i will edit the condition, also about the loop, Im still loving it

ALSO: System's Edited,
PHP код:
if(!IsPlayerAdmin(playerid)) 
is removed since its useless, and replaced instead the condition of the (pEventor), you've to set yourself eventor (/seteventor) to do events, anything else, you wont be able to do!

Greetings! xD
Reply
#7

Awesome!
Repped
Reply
#8

Quote:
Originally Posted by K0P
Посмотреть сообщение
Awesome!
Repped
GLAD! OH YEAH! THANKS BUDDY! XD
Reply
#9

Nice Work , keep it up ;
Reply
#10

Quote:
Originally Posted by ItzzWesty
Посмотреть сообщение
Nice Work , keep it up ;
Thanks alot buddy!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)