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

Random T and CT Team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 09-15-2012 , 14:49   Random T and CT Team
Reply With Quote #1

This plugin,I did for my server.

The purpose of the plugin -> in the game selects randomly a prisoner, selected prisoner give m4a1 and warn with hud message.

But, I can't select random T (Sometimes choose CT ), finally ->
PHP Code:
    if( ict == 1)
    {
        
ColorChat(0NORMAL"%s Mahkumlardan biri hapishaneye silah sokmayi basarmis onu bulun.!!",tag);    // Only see all guardian
        
return;
    } 
__________________

Last edited by Erdener; 02-27-2013 at 10:18.
Erdener is offline
floatman
Senior Member
Join Date: Oct 2009
Location: nowhere.
Old 09-15-2012 , 15:34   Re: Random T and CT Team
Reply With Quote #2

PHP Code:
public roundstart()
{
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum"ae""TERRORIST" );
    
    if( 
iNum )
        return 
PLUGIN_HANDLED;

    
choose:
    new 
iPlayer iPlayersrandomiNum ) ];
    
    if( !
is_user_connectediPlayer ) || !is_user_aliveiPlayer ) )
        goto 
choose;

    
give_itemiPlayer"weapon_m4a1" );

    
set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), -1.00.320.55.0);
    
show_hudmessageiPlayer"=  Kacmana yardim etmek icin sana silah verildi kullan onu... =" );

I changed the synchudmessage in a normal hud message and optimized it a little bit. You can modify it as you want. Should work.
__________________

floatman is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 09-16-2012 , 06:28   Re: Random T and CT Team
Reply With Quote #3

Thnx for your help
__________________
Erdener 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 22:30.


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