Raised This Month: $ Target: $400
 0% 

Spawn Protection


Post New Thread Reply   
 
Thread Tools Display Modes
mader
Member
Join Date: Dec 2004
Old 01-06-2005 , 09:54   :)
Reply With Quote #91

good work
__________________
leader of funniestclan ip 81.227.80.160
game cs
site www.funniest-clan.tk
have fun
mader is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-06-2005 , 19:19  
Reply With Quote #92

Thanks XxKpAznGuyxX , I'm getting close I have an idea about the errors and I'll post another one okay , thanks for your consideration.
Peli is offline
Send a message via MSN to Peli
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 01-06-2005 , 19:47  
Reply With Quote #93

Code:
register_concmd("amx_spmessage","cmd_spmessage",ADMIN_KICK,"1 = Turn Spawn Protection Message on , 0 = Turn Spawn Protection message off")
I dont see the function cmd_spmessage anywhere in the code.
__________________
Nick is offline
Send a message via MSN to Nick
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-06-2005 , 21:34  
Reply With Quote #94

Well do you think I should just get rid of the concmd's then?
Peli is offline
Send a message via MSN to Peli
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 01-06-2005 , 21:55  
Reply With Quote #95

Well your trying to make a command to turn SPmessages on/off right? You could add something like this to your code.

Code:
public cmd_spmessage(id, level, cid) {     if (!cmd_access(id, level, cid, 2)) {         return PLUGIN_HANDLED     }     new sp[3]     read_argv(1, sp, 2)     if (sp[0] == '1') {         set_cvar_num("amx_spmessage", 1)             } else if (sp[0] == '0') {         set_cvar_num("amx_spmessage", 0)             } else if (sp[0] != '1' || sp[0] != '0') {         console_print(id, "Usage : amx_spmessage 1 = Messages ON | 0 = Messages OFF")         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED }
I didn't test it but I don't see why it wouldn't work :S
__________________
Nick is offline
Send a message via MSN to Nick
viper6742
Junior Member
Join Date: Dec 2004
Location: Here
Old 01-07-2005 , 18:58  
Reply With Quote #96

I tried the last .sma and now i get

[AMXX] Function is not preasent (function "cmd_spmessage") (plugins "spawnprotection.amxx")
[AMXX] Native error in "register_concmd" on line 30 (file "spawnprotection.sma").

Thanks for your help...
viper6742 is offline
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-07-2005 , 21:28  
Reply With Quote #97

Okay thanks for your help Nick , I'll add that and then I'll see what's up. Viper or anyone else who had problems with it with CZ/CS can you check it for me now with Nick's code added? I attached it in this post.
Attached Files
File Type: sma Get Plugin or Get Source (spawnprotection.sma - 860 views - 3.6 KB)
Peli is offline
Send a message via MSN to Peli
XxKpAznGuyxX
Senior Member
Join Date: Dec 2004
Location: EARTH!!
Old 01-08-2005 , 08:24  
Reply With Quote #98

so far I didn't get any error which is great! Im guessing its working now....
__________________
24/7 Chicago Terror-8.9.2.120:27015
XxKpAznGuyxX is offline
Send a message via AIM to XxKpAznGuyxX Send a message via MSN to XxKpAznGuyxX
viper6742
Junior Member
Join Date: Dec 2004
Location: Here
Old 01-08-2005 , 09:05  
Reply With Quote #99

So far its lokking good, I havent played yet but from the server everything is working fine.

Thanks and great job!!!!!!
viper6742 is offline
XxKpAznGuyxX
Senior Member
Join Date: Dec 2004
Location: EARTH!!
Old 01-08-2005 , 09:51  
Reply With Quote #100

yes it working properly but no one know when the god mod thingy is off? so can you like make everyone glow green or w/e for 5 secs untill the god mod is off?
__________________
24/7 Chicago Terror-8.9.2.120:27015
XxKpAznGuyxX is offline
Send a message via AIM to XxKpAznGuyxX Send a message via MSN to XxKpAznGuyxX
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 10:10.


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