Raised This Month: $ Target: $400
 0% 

Help [Plugin]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
happycappy
Junior Member
Join Date: May 2006
Location: NL
Old 07-14-2006 , 04:13   Re: Help [Plugin]
Reply With Quote #1

Ooooh, ok

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <amxmodx> #include <amxmisc> #include <fun>   public plugin_init() {         register_plugin("Say Lol And Get Slapped", "1.0", "eXec")         register_concmd("say lol", "lol")         register_cvar("slaplol_on", "1") } public lol(id)     if(get_cvar_num("slaplol_on"))         user_slap(id,1)     static player[33] get_user_name(id,player,32) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0) show_hudmessage(id, "%s got slapped for saying lol", player)
__________________
7331
happycappy is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-14-2006 , 09:31   Re: Help [Plugin]
Reply With Quote #2

You need to add brackets if it's more than one statement, in order to remove ambiguity.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
happycappy
Junior Member
Join Date: May 2006
Location: NL
Old 07-14-2006 , 10:43   Re: Help [Plugin]
Reply With Quote #3

Ok, i never scripted in my whole life, explain me in english please xD And im from holland, so i dont really know what you are trying to say with "Brackets"
__________________
7331
happycappy is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-14-2006 , 11:14   Re: Help [Plugin]
Reply With Quote #4

->

Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {         register_plugin("Say Lol And Get Slapped", "1.0", "eXec")         register_concmd("say lol", "lol")         register_cvar("slaplol_on", "1") } public lol(id) {     if(!get_cvar_num("slaplol_on"))         return PLUGIN_CONTINUE         user_slap(id,1)     static player[33]     get_user_name(id,player,32)     set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0)     show_hudmessage(id, "%s got slapped for saying lol", player)         return PLUGIN_HANDLED }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



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 08:05.


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