Raised This Month: $51 Target: $400
 12% 

[Reqest] VIP FREE EVENT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
brick_bazuka001
Junior Member
Join Date: Jul 2017
Old 07-21-2017 , 03:23   [Reqest] VIP FREE EVENT
Reply With Quote #1

Hello.Someone can help me whit this plugin ? VIP FREE EVENT.
With messages ... EX :
Could you add colorful messages?

[CSGO Remake] VIP FREE EVENT begins today at the hour : 21:00 and ends at : 22:00
[CSGO Remake] VIP FREE EVENT has begun...
[CSGO Remake] Time left : ...
[CSGO Remake] VIP FREE EVENT is OVER.

I have a source if something could change


#include <amxmodx>
#include < amxmisc >

const TASK_ID = 258;

new h;
new task_set = 0;

public plugin_init()
{
register_plugin("VIP Hour", "1.0", "compaq")
}

public client_putinserver(id)
{
new o, m, s;
time(o, m, s)
if((o >= 00 && o < 0 || (o >= 15 && o < 16))
{
if( get_user_flags(id) != read_flags("bit") || !( get_user_flags( id ) & ADMIN_LEVEL_H ) )
{
set_user_flags(id, read_flags("bit"))
set_task(3.0, "mesaj", id)
}

if( !task_set )
{
set_task( 60.0, "recheck", TASK_ID, _, _, "b" ); // task pus la 1 minut pentru a functiona corect
task_set = 1;
}
}
}

public recheck()
{

time( h, _, _ );

if( h >= 08 || h >= 16 )
{
new iPlayers[ 32 ], iNum, i;
get_players( iPlayers, iNum );

for( i = 0; i < iNum; i++ )
{
remove_user_flags( iPlayers[ i ] );
}

server_cmd( "amx_reloadadmins" );

remove_task( TASK_ID );
task_set = 0;
}
}

public mesaj(id)
{
client_print(id, print_chat, Mesaj")
}

Last edited by brick_bazuka001; 07-21-2017 at 04:36.
brick_bazuka001 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 07-21-2017 , 12:57   Re: [Reqest] VIP FREE EVENT
Reply With Quote #2

first of all, use php tags
__________________
retired chump
DjSoftero is offline
brick_bazuka001
Junior Member
Join Date: Jul 2017
Old 07-21-2017 , 15:49   Re: [Reqest] VIP FREE EVENT
Reply With Quote #3

So, can someone help me?

UP
brick_bazuka001 is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 07-22-2017 , 03:30   Re: [Reqest] VIP FREE EVENT
Reply With Quote #4

You didn't even listen to Softero.
Start off by adding [php] tag at the start of your code on your post, and [ /php] in the end without spaces.
Nobody wants to deal with that shit.
__________________
Rohanlogs is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode