Raised This Month: $ Target: $400
 0% 

talkzone help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-05-2005 , 10:31   talkzone help
Reply With Quote #1

welp, im trying to edit a talkzone plugin...
ive seen a double if statement used before... but i dunno if it worked, so i tried a triple one! lol, anyway, can someone fix this code? it compiles with no warnings or errors, but the advertisement part doesnt work...

i dont know why it doesnt work, heres what im trying to change:

Code:
    if(multipart == 1 && equali(arg1,"ooc")) { // out-of-character       client_print(0,print_chat,"(OOC) %s: ((%s))^n",playername,arg2);       return PLUGIN_HANDLED;     }     if(multipart == 1 && equali(arg1,"adv")) { // Advertisement       client_print(0,print_chat,"<Advertisment> %s: ((%s))^n",playername,arg2);       return PLUGIN_HANDLED;     }     if(multipart == 1 && equali(arg1,"cnn") && access(id,ADMIN_LEVEL_A)) { // cnn       client_cmd(0,"speak ^"fvox/alert^"");       client_print(0,print_chat,"<CNN Newsflash> %s^n",arg2);       return PLUGIN_HANDLED;     }

from this:

Code:
    if(multipart == 1 && equali(arg1,"ooc")) { // out-of-character       client_print(0,print_chat,"(OOC) %s: ((%s))^n",playername,arg2);       return PLUGIN_HANDLED;     }     else if(multipart == 1 && equali(arg1,"cnn") && access(id,ADMIN_LEVEL_A)) { // cnn       client_cmd(0,"speak ^"fvox/alert^"");       client_print(0,print_chat,"<CNN Newsflash> %s^n",arg2);       return PLUGIN_HANDLED;     }
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-05-2005 , 18:57  
Reply With Quote #2

I HATE that people took MY original idea (CNN)....
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-05-2005 , 21:32  
Reply With Quote #3

lol, i r not stealing it... this is from another plugin (avalanches)...

can you help me plz?
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-06-2005 , 12:19  
Reply With Quote #4

oh come on... no one can help?
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 03-06-2005 , 12:29  
Reply With Quote #5

Code:
if(multipart == 1 && equali(arg1,"ooc")) { // out-of-character       client_print(0,print_chat,"(OOC) %s: ((%s))^n",playername,arg2);       return PLUGIN_HANDLED;     }     else if(multipart == 1 && equali(arg1,"adv")) { // Advertisement       client_print(0,print_chat,"<Advertisment> %s: ((%s))^n",playername,arg2);       return PLUGIN_HANDLED;     }     else if(multipart == 1 && equali(arg1,"cnn") && access(id,ADMIN_LEVEL_A)) { // cnn       client_cmd(0,"speak ^"fvox/alert^"");       client_print(0,print_chat,"<CNN Newsflash> %s^n",arg2);       return PLUGIN_HANDLED;     }

why exactly isnt it working? is ther a compile error or it just wont read says?

becuz due to the lack of information, i just made else if's.

Edit: I read the above... does CNN work or is it just the adv thats giving you problems.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-06-2005 , 13:27  
Reply With Quote #6

If you have my .sma you'll note that CNN stands for Chaplain's News Network, and you'll also note that it's not the only idea that I stole from you for this plugin, Suzuka. This plugin should be out of circulation by now... :-(
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-06-2005 , 15:33  
Reply With Quote #7

:/ didnt work noob scripter...

only ooc and regular chat works..

when you type 'adv text', it just says 'adv text' in regular chat

what im trying to do is, im tired of people advertising thier businesses in ooc, so im trying to make it so that they have to use and advertising chat
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-08-2005 , 03:21  
Reply With Quote #8

Quote:
Originally Posted by XxAvalanchexX
If you have my .sma you'll note that CNN stands for Chaplain's News Network, and you'll also note that it's not the only idea that I stole from you for this plugin, Suzuka. This plugin should be out of circulation by now... :-(
Yes, but CNN was MY original idea. Mine. No one elses. Its what started me in this whole plugin business! Like my little child...

And you twisted it from Central News Network, an actual USA channel, to some bizzar and obscene network! Your a priest, molesting my little CNN...
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-08-2005 , 10:20  
Reply With Quote #9

since you started it suzuka, can you tell how to make it work like shout? That would make it better
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-08-2005 , 11:33  
Reply With Quote #10

Your going to make CNN, work like shout?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Reply


Thread Tools
Display Modes

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 13:58.


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