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

cooldown add help


Post New Thread Reply   
 
Thread Tools Display Modes
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 07-11-2005 , 22:31  
Reply With Quote #11

1. this doesnt belong in hero_init
Code:
if ( is_user_alive(id) ) {         if ( hasPowers ) {             terrorist_giveweapons(id)             terrorist_task(id)         }         else if ( !hasPowers && gHasTerroristPower[id] ) {             engclient_cmd(id, "drop", "weapon_c4")         }     }

2. change this to 1.0
Code:
set_task(0.1, "terrorist_giveweapons", id)

3. For this you need to add a certain event
Code:
new clip, ammo, wpnid = get_user_weapon(id, clip, ammo)         if (wpnid != CSW_AK47 && wpnid > 0) {             new wpn[32]             get_weaponname(wpnid, wpn, 31)             engclient_cmd(id, wpn)
which you already have a function for but dont have it registered properly
Code:
weaponChange(id)
after you fixed all this then update ur source all take a look
Freecode is offline
Headshot Deluxe
Member
Join Date: Jul 2005
Location: United States
Old 07-11-2005 , 22:45  
Reply With Quote #12

Ive fixed it, but i think there' still something wrong, but I dont know what
Attached Files
File Type: sma Get Plugin or Get Source (sh_terrorist.sma - 267 views - 3.3 KB)
__________________

Friend's Ultimate WC3 Server - 82.165.253.69:27015
=\
Headshot Deluxe is offline
Send a message via ICQ to Headshot Deluxe Send a message via AIM to Headshot Deluxe Send a message via MSN to Headshot Deluxe Send a message via Yahoo to Headshot Deluxe
whiteboikyle
Senior Member
Join Date: May 2005
Location: Nevada
Old 07-12-2005 , 00:47  
Reply With Quote #13

well here are the compiling errors some of them are self explanitory.
Attached Images
File Type: jpg untitled-2.jpg (55.2 KB, 118 views)
__________________

Free sigs for anyone. i can change the name to any of them PM me if u would like any of them
[x][x][x][x][x]
[x][x][x][x]
whiteboikyle is offline
Send a message via AIM to whiteboikyle Send a message via MSN to whiteboikyle Send a message via Yahoo to whiteboikyle
Headshot Deluxe
Member
Join Date: Jul 2005
Location: United States
Old 07-12-2005 , 00:53  
Reply With Quote #14

You have to understand that Im still new at this.
Here, I fixed some. Please check
Attached Files
File Type: sma Get Plugin or Get Source (sh_terrorist.sma - 247 views - 3.3 KB)
__________________

Friend's Ultimate WC3 Server - 82.165.253.69:27015
=\
Headshot Deluxe is offline
Send a message via ICQ to Headshot Deluxe Send a message via AIM to Headshot Deluxe Send a message via MSN to Headshot Deluxe Send a message via Yahoo to Headshot Deluxe
MeHMeT
Senior Member
Join Date: Feb 2005
Location: orange county,and sydney
Old 07-12-2005 , 02:52  
Reply With Quote #15

whiteboi kyle already ..."made" terrorist it was trashed.
__________________
[img]http://img32.**************/img32/2005/pain28gu.png[/img]
MeHMeT is offline
Send a message via AIM to MeHMeT Send a message via MSN to MeHMeT
Headshot Deluxe
Member
Join Date: Jul 2005
Location: United States
Old 07-12-2005 , 03:15  
Reply With Quote #16

He made a crappyer version of terrorist though. and i want to learn about this scripting thing
__________________

Friend's Ultimate WC3 Server - 82.165.253.69:27015
=\
Headshot Deluxe is offline
Send a message via ICQ to Headshot Deluxe Send a message via AIM to Headshot Deluxe Send a message via MSN to Headshot Deluxe Send a message via Yahoo to Headshot Deluxe
whiteboikyle
Senior Member
Join Date: May 2005
Location: Nevada
Old 07-12-2005 , 14:11  
Reply With Quote #17

ya i just ripped it off of batman. I just wanted terrorist i love that hero.
__________________

Free sigs for anyone. i can change the name to any of them PM me if u would like any of them
[x][x][x][x][x]
[x][x][x][x]
whiteboikyle is offline
Send a message via AIM to whiteboikyle Send a message via MSN to whiteboikyle Send a message via Yahoo to whiteboikyle
Headshot Deluxe
Member
Join Date: Jul 2005
Location: United States
Old 07-23-2005 , 18:21  
Reply With Quote #18

What function do I add to terrorist to add a check so then wheen people drop terrorist they wont be able to get the bomb again, because ppl have been stacking the c4 on top so noone can defuse it
__________________

Friend's Ultimate WC3 Server - 82.165.253.69:27015
=\
Headshot Deluxe is offline
Send a message via ICQ to Headshot Deluxe Send a message via AIM to Headshot Deluxe Send a message via MSN to Headshot Deluxe Send a message via Yahoo to Headshot Deluxe
whiteboikyle
Senior Member
Join Date: May 2005
Location: Nevada
Old 07-23-2005 , 20:42  
Reply With Quote #19

make it so u cant drop heros while ur alive.
__________________

Free sigs for anyone. i can change the name to any of them PM me if u would like any of them
[x][x][x][x][x]
[x][x][x][x]
whiteboikyle is offline
Send a message via AIM to whiteboikyle Send a message via MSN to whiteboikyle Send a message via Yahoo to whiteboikyle
Headshot Deluxe
Member
Join Date: Jul 2005
Location: United States
Old 07-23-2005 , 21:12  
Reply With Quote #20

But I only want that for terrorist
__________________

Friend's Ultimate WC3 Server - 82.165.253.69:27015
=\
Headshot Deluxe is offline
Send a message via ICQ to Headshot Deluxe Send a message via AIM to Headshot Deluxe Send a message via MSN to Headshot Deluxe Send a message via Yahoo to Headshot Deluxe
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 07:17.


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