Raised This Month: $51 Target: $400
 12% 

WILLING TO MAKE HEROS FOR NOOBS!!!JUST POST IDEA HERE...


Post New Thread Reply   
 
Thread Tools Display Modes
Rippah
Senior Member
Join Date: Oct 2004
Location: nnnnnnnnnnnnnorway!
Old 11-02-2004 , 10:07   ok lunch
Reply With Quote #11

ive madew the lunchbox hero and called him (from fatebringer) _Newbslayer_ i ripped it from batman and renamed it gave it more hp and only the mac10 gun but it doesent work... why?here is the help a scriptin noob out here admins!! Newbslayer.sma:
//newbslayer -made especially for: _LUNCHBOX!!!_

/* CVARS - copy and paste to shconfig.cfg

//newbslayer
newbslayer_level 0
newbslayer_health 300 //default 300
newbslayer_armor 600 //defualt 600




#include <amxmod>
#include <superheromod>

// GLOBAL VARIABLES
new gHeroName[]="newbslayer"
new gHasNewbPower[SH_MAXSLOTS+1]
new gCurrentWeapon[SH_MAXSLOTS+1]
new gmsgSetFOV

#define giveTotal 2
new weapArray[giveTotal][2] = {
"weapon_mac10"

}

//----------------------------------------------------------------------------------------------
public plugin_init()
{
// Plugin Info
register_plugin("SUPERHERO Newbslayer","1.0","_-=RippaH=-_")

// DO NOT EDIT THIS FILE TO CHANGE CVARS, USE THE SHCONFIG.CFG
register_cvar("newbslayer_level", "0")
register_cvar("newbslayer_health", "300")
register_cvar("newbslayer_armor", "600")

// FIRE THE EVENT TO CREATE THIS SUPERHERO!
shCreateHero(gHeroName, "Utility Belt", "300hp 600ap mac10 , false, "newbslayer_level" )

// REGISTER EVENTS THIS HERO WILL RESPOND TO! (AND SERVER COMMANDS)
register_srvcmd("newbslayer_init", "newbslayer_init")
shRegHeroInit(gHeroName, "newbslayer_init")
register_event("ResetHUD","newRound","b")
register_event("CurWeapon","changeWeapon","be ","1=1")

// Let Server know about Newbslayers Variable
// It is possible that another hero has more hps, less gravity, or more armor
// so rather than just setting these - let the superhero module decide each round
shSetMaxHealth(gHeroName, "newbslayer_health" )
shSetMaxArmor(gHeroName, "newbslayer_armor" )
shSetShieldRestrict(gHeroName)

gmsgSetFOV = get_user_msgid("SetFOV")
}
//----------------------------------------------------------------------------------------------
public Newbslayer_init()
{
new temp[6]
// First Argument is an id
read_argv(1,temp,5)
new id = str_to_num(temp)

// 2nd Argument is 0 or 1 depending on whether the id has Newbslayer
read_argv(2,temp,5)
new hasPowers = str_to_num(temp)
gHasNewbPower[id] = (hasPowers != 0)

if (!is_user_connected(id)) return

//Reset thier shield restrict status
//Shield restrict MUST be before weapons are given out
shResetShield(id)

if ( gHasNewbPower[id] ) {
newbslayer_giveweapons(id)
}
else {
shRemHealthPower(id)
shRemArmorPower(id)
newbslayer_dropweapons(id)
}
}
//----------------------------------------------------------------------------------------------
public newRound(id)
{
if ( gHasNewbPower[id] && is_user_alive(id) && shModActive() ) {
newbslayer_giveweapons(id)
set_user_rendering(id)
}
}
//----------------------------------------------------------------------------------------------
public Newbslayer_giveweapons(id)
{
if ( !is_user_alive(id) ) return

new parm[3]
parm[0] = id

//Loop with tasks prevents "Reliable Channel Overflow"
for (new x = 0; x < giveTotal; x++) {
parm[1] = x
set_task((0.01 * (x + 1)),"giveweap_task",0,parm,2)
}

// Give CTs a Defuse Kit
if ( get_user_team(id) == 2 ) shGiveWeapon(id,"item_thighpack")
}
//----------------------------------------------------------------------------------------------
public giveweap_task(parm[]) {
new id = parm[0]
new weapname[24]
copy (weapname,23,weapArray[parm[1]])
shGiveWeapon(id, weapname)
}
//----------------------------------------------------------------------------------------------
public Newbslayer_dropweapons(id)
{
if ( !is_user_alive(id) ) return

new parm[3]
parm[0] = id

//Loop with tasks prevents "Reliable Channel Overflow"
for (new x = 0; x < giveTotal; x++) {
parm[1] = x
set_task((0.001 * (x + 1)),"dropweap_task",0,parm,2)
}
}
//----------------------------------------------------------------------------------------------
public dropweap_task(parm[]) {
new id = parm[0]
new weapname[24]
copy (weapname,23,weapArray[parm[1]])
engclient_cmd(id,"drop", weapname)
}
//----------------------------------------------------------------------------------------------
public changeWeapon(id) {

if ( !shModActive() ) return

new weaponid = read_data(2)

if ( gCurrentWeapon[id] != weaponid ) {
gCurrentWeapon[id] = weaponid
Newbslayer_zoomout(id)
}
}
//----------------------------------------------------------------------------------------------
public client_connect(id) {
gHasNewbPower[id] = false
}
//----------------------------------------------------------------------------------------------
public Newbslayer_zoomout(id) {
if ( !is_user_connected(id) || !is_user_alive(id)) return
message_begin(MSG_ONE, gmsgSetFOV, {0,0,0}, id)
write_byte(90) //not Zooming
message_end()
}
ERRORLOG:
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

sh_Newbslayer.sma(164) : error 001: expected token: "*/", but found "-end of file-"
sh_Newbslayer.sma(164) : error 013: no entry point (no public functions)

2 Errors.
__________________
PLEASE:
1)search before you start a new post
2)read the rules (FFS)
I am 58% addicted to Counterstrike. What about you?
Rippah is offline
Send a message via AIM to Rippah Send a message via MSN to Rippah Send a message via Yahoo to Rippah
Fatebringer
Senior Member
Join Date: Sep 2004
Old 11-02-2004 , 10:09  
Reply With Quote #12

A hero named after me... what love.
__________________
I'm 126% addicted to Counterstrike. How about you?
Fatebringer is offline
Rippah
Senior Member
Join Date: Oct 2004
Location: nnnnnnnnnnnnnorway!
Old 11-02-2004 , 10:37   LoL
Reply With Quote #13

and the errorlog?
__________________
PLEASE:
1)search before you start a new post
2)read the rules (FFS)
I am 58% addicted to Counterstrike. What about you?
Rippah is offline
Send a message via AIM to Rippah Send a message via MSN to Rippah Send a message via Yahoo to Rippah
Fatebringer
Senior Member
Join Date: Sep 2004
Old 11-02-2004 , 10:46  
Reply With Quote #14

I don't code so I can't help much. But look at the first error. It tells you it's expecting a "/" and it never found it...
__________________
I'm 126% addicted to Counterstrike. How about you?
Fatebringer is offline
LUNCHBOX!!!
Senior Member
Join Date: Nov 2004
Location: In a lunchbox!!!
Old 11-02-2004 , 11:52  
Reply With Quote #15

Here is the model link: http://www.cs.4players.de/download_f...OWNLOADID=2040
Attached Images
File Type: jpg Mac10.jpg (8.4 KB, 611 views)
__________________
Fly..or something
Retierd!
LUNCHBOX!!! is offline
ArtofDrowning07
Senior Member
Join Date: Aug 2004
Old 11-02-2004 , 14:56  
Reply With Quote #16

omg...try putting */ after
Code:
/* CVARS - copy and paste to shconfig.cfg 

//newbslayer 
newbslayer_level 0 
newbslayer_health 300 //default 300 
newbslayer_armor 600 //defualt 600
..cuz then it might close the comment section and actually have some code..
ArtofDrowning07 is offline
Rippah
Senior Member
Join Date: Oct 2004
Location: nnnnnnnnnnnnnorway!
Old 11-02-2004 , 15:05   yeah i figured THAT out but
Reply With Quote #17

wtf is this
no public functions???well only 1 error is good toh

sh_Newbslayer.sma(174) : error 013: no entry point (no public functions)

1 Error.
and when i took the "*/" after this cvar default this HUGE errorlog came...
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

sh_Newbslayer.sma(25) : error 018: initialization data exceeds declared size
sh_Newbslayer.sma(27) : error 001: expected token: ",", but found "}"
sh_Newbslayer.sma(27 -- 30) : error 008: must be a constant expression; assumed zero
sh_Newbslayer.sma(42) : error 001: expected token: ",", but found "-identifier-"
sh_Newbslayer.sma(42 -- 45) : error 001: expected token: ",", but found "-identifier-"
sh_Newbslayer.sma(42 -- 56) : warning 202: number of arguments does not match definition
sh_Newbslayer.sma(42 -- 56) : error 001: expected token: ",", but found "-identifier-"
sh_Newbslayer.sma(42 -- 60) : warning 202: number of arguments does not match definition
sh_Newbslayer.sma(42 -- 60) : error 001: expected token: ",", but found "-identifier-"
sh_Newbslayer.sma(42 -- 63) : warning 202: number of arguments does not match definition
sh_Newbslayer.sma(42 -- 63) : error 001: expected token: ",", but found "public"
sh_Newbslayer.sma(42 -- 65) : error 029: invalid expression, assumed zero
Assertion failed: !_pushed, file sc2.c, line 1214
ABNORMAL TERMINATION
__________________
PLEASE:
1)search before you start a new post
2)read the rules (FFS)
I am 58% addicted to Counterstrike. What about you?
Rippah is offline
Send a message via AIM to Rippah Send a message via MSN to Rippah Send a message via Yahoo to Rippah
ArtofDrowning07
Senior Member
Join Date: Aug 2004
Old 11-02-2004 , 15:19  
Reply With Quote #18

....then fix the errors

i just told you how to un-comment all the code, its not my fault u have alot of errors in it
ArtofDrowning07 is offline
Rippah
Senior Member
Join Date: Oct 2004
Location: nnnnnnnnnnnnnorway!
Old 11-02-2004 , 15:37   well hell
Reply With Quote #19

it REALLY starts to annoy me that evrytime i fix something i may land up with 1 error and then i fix that one too and i get 20 new.......................................... ...............
__________________
PLEASE:
1)search before you start a new post
2)read the rules (FFS)
I am 58% addicted to Counterstrike. What about you?
Rippah is offline
Send a message via AIM to Rippah Send a message via MSN to Rippah Send a message via Yahoo to Rippah
Rippah
Senior Member
Join Date: Oct 2004
Location: nnnnnnnnnnnnnorway!
Old 11-02-2004 , 16:33   Healthcap
Reply With Quote #20

this hero is made for bluethooth (now he dosent have to ask others....be happy chivas and fate!!)
autoheal (5 per sec)
400hp (this seamt to land on 400 for some reason but i dont really care....you can download another HIGH hp hero...)
Attached Files
File Type: sma Get Plugin or Get Source (sh_healthcap.sma - 603 views - 3.3 KB)
__________________
PLEASE:
1)search before you start a new post
2)read the rules (FFS)
I am 58% addicted to Counterstrike. What about you?
Rippah is offline
Send a message via AIM to Rippah Send a message via MSN to Rippah Send a message via Yahoo to Rippah
Reply



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 03:50.


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