Raised This Month: $ Target: $400
 0% 

vesthelm at player spawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
elplouk
Member
Join Date: Aug 2009
Location: France
Old 03-17-2011 , 02:18   vesthelm at player spawn
Reply With Quote #1

Hi guys !

I need help with a plugin that gives players kevlar+helmet everytime they spawn on my deathmatch server. This plugin gives error messages like :

L 03/15/2011 - 19:24:02: [CSTRIKE] Invalid player 4
L 03/15/2011 - 19:24:02: [AMXX] Run time error 10 (plugin "kevlar.amxx") (native
"cs_set_user_armor") - debug not enabled!
L 03/15/2011 - 19:24:02: [AMXX] To enable debug mode, add "debug" after the plug
in name in plugins.ini (without quotes).


Maybe, this bug could be fixed ? Here's the code :
Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>

public plugin_init() 
{
    register_plugin("Drop Kevlar", "1.0", "unknown")
    RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
}

public ham_PlayerSpawn_Post(id)
{
cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
}
Thanks !
elplouk 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 14:29.


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