|
Author
|
Message
|
|
Junior Member
|

01-05-2008
, 13:21
Simple code doesn't work
|
#1
|
222I couldn't understand why this code doesn't work:
//---code
#include <amxmodx>
#include <fun>
#include <engine>
#include <cstrike>
#define PLUGIN "D"
#define VERSION "1.0"
#define AUTHOR "Spin7ion"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHUD", "event_spawn", "a")
}
public event_spawn(id)
{
set_hudmessage(255, 255, 0, 0.60, 0.93, 0, 6.0, 12.0)
show_hudmessage(id, "D is using")
strip_user_weapons(id)
give_item(id, "weapon_p90")
}
//---code
It must give player P90 on round start.
I also try HLTV event, but it didn't work.
Please help.
|
|
|
|