Author Topic: Announce(%client,  (Read 2601 times)

Ok I Know Ive Asked Alot Latley And Im Sorry But Why Wont This Announce To Everyone?

Code: [Select]
function servercmdwarrior(%client){
         %client.player.tool[4] = nametoID(SwordItem);
messageClient(%client, 'MsgItemPickup', '', 4, nametoID(SwordItem));}
announce(%client,'','\c3You Have Become A Warrior!');
 
« Last Edit: September 19, 2007, 07:52:29 PM by Evil »

Because announce isn't a predesignated operation.

Code: [Select]
bottomPrintAll("\c2" @ %client.name @ " \c6 has became a WARRIOR!",25,3);

hmm it didnt work still doesnt say anything heres script

Code: [Select]
function servercmdwarrior(%client){
         %client.player.tool[4] = nametoID(SwordItem);
messageClient(%client, 'MsgItemPickup', '', 4, nametoID(SwordItem));}
bottomPrintAll("\c2" @ %client.name @ " \c6 has became a WARRIOR!",25,3);

Evil Stop Talking Like This Nevar Capital Every Letter It Is Gay!

dude if you dont like it then dont help me -_- your just wasting a post doing that so just stop and +GTFO
« Last Edit: September 19, 2007, 09:14:39 PM by Evil »

use
Code: [Select]
announce(%client.name SPC "Is now a warrior!");
that will tell it to everyone tho.

Code: [Select]
function servercmdwarrior(%client){
         %client.player.tool[4] = nametoID(SwordItem);
messageClient(%client, 'MsgItemPickup', '', 4, nametoID(SwordItem));}
announce(%client.name SPC "Is now a warrior!");

What's the bottomprint for Clients?

Because announce isn't a predesignated operation.

Code: [Select]
bottomPrintAll("\c2" @ %client.name @ " \c6 has became a WARRIOR!",25,3);
you are so, oh so wrong.

I didn't think it was. Neeb.

Whats the announce/BP for Clients?

messageclient(%client,'',"lulwuttexthere");

messageclient(%client,'',"lulwuttexthere");
NO
he wants bottom text.....


Code: [Select]
messageclient(%obj.client,"","Welcome"); post it in the text box only for the client!
Code: [Select]
messageserver(%obj.client,"","Welcome"); posts the msg in the chatbox for all clients
Code: [Select]
bottomPrint(%client,"<color:FF0000>TEXT<color:FF0000>MOAR TEST",2,2); sends it to the clients who activates bottom screen.
Code: [Select]
bottomPrint(%server,"<color:FF0000>TEXT<color:FF0000>MOAR TEST",2,2); sends it to the bottom text of all clients

messageclient(%client,'',"lulwuttexthere");
NO
he wants bottom text.....


Code: [Select]
messageclient(%obj.client,"","Welcome"); post it in the text box only for the client!
Code: [Select]
messageserver(%obj.client,"","Welcome"); posts the msg in the chatbox for all clients
Code: [Select]
bottomPrint(%client,"<color:FF0000>TEXT<color:FF0000>MOAR TEST",2,2); sends it to the clients who activates bottom screen.
Code: [Select]
bottomPrint(%server,"<color:FF0000>TEXT<color:FF0000>MOAR TEST",2,2); sends it to the bottom text of all clients
messageServer is not a function, stupid.
It's messageAll('', "lul message");

messageAll does everyone
messageClient does one client
commandToClient(%client, 'command', %arg1, %arg2); does a command to a client, I.E. centerprinting (command = centerprint, arg1 is message, arg2 is time to keep it up)
messageAdmin messages only admins
messageSuperAdmin messages super admins.

(Note: messageAdmin and messageSuperAdmin may have slightly different names...)

The problem is with the brackets not the message function...

Code: [Select]
function servercmdwarrior(%client){
         %client.player.tool[4] = nametoID(SwordItem);
messageClient(%client, 'MsgItemPickup', '', 4, nametoID(SwordItem));} //Ends function
bottomPrintAll("\c2" @ %client.name @ " \c6 has became a WARRIOR!",25,3); //Bottomprints nonexistant players

Try this:

Code: [Select]
function servercmdwarrior(%client){
         %client.player.tool[4] = nametoID(SwordItem);
messageClient(%client, 'MsgItemPickup', '', 4, nametoID(SwordItem));
bottomPrintAll("\c2" @ %client.name @ " \c6 has became a WARRIOR!",25,3);}

Thanks Guys It Worked But Whats The Command To Make It So Only You Hear It?