Raised This Month: $ Target: $400
 0% 

Message Help :)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-17-2010 , 12:23   Re: Message Help :)
Reply With Quote #4

Code:
#include <amxmodx> #include <fun> public plugin_init() {    //registers the command "say /tutorial" and calls cmdTutorial when someone says it    register_clcmd("say /tutorial", "cmdTutorial") } public cmdTutorial(index) {    //checks if he's alive first    if(is_user_alive(index)   )    {       //sets his health       set_user_health(index, 150)       //sets his gravity to half (400)       set_user_gravity(index, 0.5)       //new variable to store his name       new szName[32]       //gets names and stores it in szName       get_user_name(index, szName, charsmax(szName)   )       //prints to everyone that he is on steroids       client_print(0, print_chat, "%s is on steroids!", szName)    } }

Written in browser, so may be indentation warnings.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
 



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


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