Raised This Month: $ Target: $400
 0% 

Used AMXXEasy X :: Need Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-27-2007 , 21:08   Re: Used AMXXEasy X :: Need Help
Reply With Quote #3

PHP Code:
public plugin_init()
{
 
// you dont need  " 
 
register_plugin(PLUGIN,VERSION,AUTHOR)
 
// an event which is triggered when players spawns
 
register_event("ResetHUD","event_spawn","be")
}
public 
client_connect(id)
{
 
// a string to store the players name.
 
new name[32]
 
 
// a function to get the user's name.
 
get_user_name(idname31)
 
 
// prints your message
 
client_print(0,print_chat,"%s Has Joined The Game!"name)
}
 
public 
event_spawn(id)
{
 
//you need a small delay just to make sure it gives your weapon
 
 
set_task(0.1"give_weapon"id)
 
}
public 
give_weapon(id)
{
 
//you need the weapons name in here
 //an example would be give_item(id,"weapon_deagle")
 
give_item(id,"42"// so what ever weapon 42 is

__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.

Last edited by Cheap_Suit; 05-27-2007 at 21:38.
Cheap_Suit is offline
 



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


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