AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   talkzone help (https://forums.alliedmods.net/showthread.php?t=10933)

Sp4rt4n 03-05-2005 10:31

talkzone help
 
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;     }

Twilight Suzuka 03-05-2005 18:57

I HATE that people took MY original idea (CNN)....

Sp4rt4n 03-05-2005 21:32

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

can you help me plz?

Sp4rt4n 03-06-2005 12:19

oh come on... no one can help?

TotalNoobScripter 03-06-2005 12:29

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.

XxAvalanchexX 03-06-2005 13:27

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

Sp4rt4n 03-06-2005 15:33

:/ 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

Twilight Suzuka 03-08-2005 03:21

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

Sp4rt4n 03-08-2005 10:20

since you started it suzuka, can you tell how to make it work like shout? That would make it better

Twilight Suzuka 03-08-2005 11:33

Your going to make CNN, work like shout?


All times are GMT -4. The time now is 13:58.

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