Raised This Month: $ Target: $400
 0% 

spawn, beginner


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
leonardo_
Member
Join Date: Nov 2012
Location: Moscow, right now in Vic
Old 02-08-2013 , 00:10   spawn, beginner
Reply With Quote #1

How can I make it work?

I am a beginner, so don't judge me please... and help me...

I need like... If a person types "/spawn" in the chat he/she can spawn, but only 2 time per round, and I have no idea how to make it...

and look at my bad, really bad scripting: ()

PHP Code:
public plugin_init()

    
register_plugin("Vn""0.1""Alex")
    
register_clcmd("say /spawn","user_spawn")

PHP Code:
public user_spawn(id){
for(new 
02i++ )
    {
    
player players[i];
    if(
is_user_alive(player) && get_user_flags(player) & ADMIN_LEVEL_G)
    {
        
spawn(id)
    }
    }


Last edited by leonardo_; 02-08-2013 at 00:13.
leonardo_ is offline
Send a message via ICQ to leonardo_ Send a message via Skype™ to leonardo_
 



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 20:37.


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