Raised This Month: $ Target: $400
 0% 

Noob's thing's


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ZaMirDj
Junior Member
Join Date: May 2007
Old 01-29-2010 , 05:58   Noob's thing's
Reply With Quote #1

Well, my first creation have many problem's.

Code:
#include <amxmodx>
#include <fakemeta>


public plugin_init() {
    register_plugin("Slapper","0.1","Zamirdj");
    register_forward(FM_PlayerPreThink,"fw_prethink");
}

public fw_prethink(id)
{
    if( get_user_team(id) == 2)
    {
set_hudmessage(255, 0, 0, -1.0, 0.01)
show_hudmessage(id, "<Hudmessage>")
user_slap(id, 0, 1)
   }
}
Works but i want to know how i can stop the loop of the slap because the slap is continous.

And i want to know anothers variables to the command "if", to make something how the "Connected People Welcome Message", etc.

See ya~

PD: Sorry for my bad english x.x
ZaMirDj 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