Raised This Month: $ Target: $400
 0% 

first script idea?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarlD
Senior Member
Join Date: Aug 2004
Old 03-10-2005 , 16:23   first script idea?
Reply With Quote #1

I got this idea for a frist script something that would start me up on the scripting community. i've got the idea but i have no idea on how to start it.

basicly i want to make it so that at each new round players are droped down at 1hp and they are given a scout with full ammo. basicly a one shot kill server. here is what i got so far...

Code:
/*
One shot kill, for Amx Mod X

Created by DarlD
*/
#include <amxmodx>
#include <fun>
#include <cstrike>

public plugin_init() // im starting my plugin here
{
    register_plugin("One shot kill","0.1","DarlD")
thats as far as i could go

EDIT: i think i made some progress but im almost sure i made errors!

Code:
/*
One shot kill, for Amx Mod X

Created by DarlD
*/
#include <amxmodx>
#include <fun>
#include <cstrike>

public plugin_init() // im starting my plugin here
{
    register_plugin("One shot kill","0.1","DarlD")
    register_cvar("amx_oneshot","1","1","1","1",1")
}

set_user_health(1,1)
give_item(32,weapon_scout)
give_item(32,ammo_scout)
DarlD is offline
Send a message via MSN to DarlD
 



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:02.


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