Raised This Month: $ Target: $400
 0% 

Say /something in chat and get random nade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GudiiS
Member
Join Date: Feb 2009
Old 07-30-2009 , 13:50   Say /something in chat and get random nade
Reply With Quote #1

Hi guy's. I try to make a simple plugin there u can say /.,.,.,.,.,. and u will get a random nade (he, flash, smoke).

But I get error in this code:

PHP Code:
 register_clcmd (" say /.,.,.,.,.,. ""say_cmd_handle");
}

public 
TrixCheat (id)
{
    { 
        
        {
            
        switch(
random_num(03))
        {
            
        case 
0give_item(id"give_item(id, "weapon_hegrenade");
                                            
        case 1: give_item(id, "
give_item(id"weapon_smokegrenade");
                      
        case 
2give_item(id"give_item(id, "weapon_flashgrenade");
                                              
        case 3: give_item(id, "
set_user_health(idget_user_health(player) + 100);
        {

        
client_print (idprint_chat"You Just bought some Triix, shh!")    
        }
     }

I'm not a good scripter so i hope u guy's can help me out.

sry my english.
GudiiS is offline
 



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 18:18.


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