Raised This Month: $ Target: $400
 0% 

Message Help :)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Invalid
Junior Member
Join Date: Jul 2010
Old 07-17-2010 , 06:09   Message Help :)
Reply With Quote #1

Hi, I were following an tutorial that if I were writing /tutorial should I get gravity and 150 hp but I wanna do so it says to everybody that "(user) are using steroids!" I hope you know what I mean thx
Invalid is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 07-17-2010 , 08:31   Re: Message Help :)
Reply With Quote #2

server_print?
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-17-2010 , 08:31   Re: Message Help :)
Reply With Quote #3

What? You want that when a player says: /tutorial then a Hudmessage will appear and this player gets 150HP and gravity?
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
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
Invalid
Junior Member
Join Date: Jul 2010
Old 07-18-2010 , 04:47   Re: Message Help :)
Reply With Quote #5

yay thx
Invalid is offline
Zpoke
Senior Member
Join Date: Aug 2009
Location: Sweden
Old 07-19-2010 , 06:58   Re: Message Help :)
Reply With Quote #6

nice, and very simpel
Zpoke is offline
Reply


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


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