Raised This Month: $ Target: $400
 0% 

Message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dreuhn
Junior Member
Join Date: Jan 2010
Old 01-24-2010 , 09:22   Message
Reply With Quote #1

The script i am currently working on shall have a weapon menu which is only supposed to be enabled when there are 2 players left alive.
That is not a problem, but when there are two people left i want a message like: "Gun menu enabled. Type: /guns " or something similar but i canīt get it working.


PHP Code:
 public plugin_init()
 {
    new 
players[32], num;
    
get_players(playersnum);     
    if (
num == 2)
{

        
client_print(0print_chat"Gun menu enabled. Type: /guns");
}    

Does not work



I also tried:
PHP Code:
public plugin_init()
 {
        
client_print(0print_chat"Gun menu enabled. Type: /guns");              

But that doesn't work either

Last edited by Dreuhn; 07-27-2012 at 15:48. Reason: Grammar
Dreuhn is offline
 


Thread Tools
Display Modes

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 07:24.


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