/ooc chat
#1

Kay so, I have a problem. You guys know how on brand new servers when you type without a command it appears like so:

I type in to the chat "Hello" it appears

Name(In correct team color): Hello

I want to turn that (regular chat) into a /ooc (global ooc) command, but I am stumped. Can anyone help?

So its like instead of not using a commnand, I want to use /ooc but stil have it look like that
Reply
#2

Like that being the main chat, is ooc? then why don't you leave it as is, and do a

Код:
/local,/rpchat
or something.
Reply
#3

Quote:
Originally Posted by Steven82
Like that being the main chat, is ooc? then why don't you leave it as is, and do a

Код:
/local,/rpchat
or something.
Because I want an /ooc command..

Edit: I already have /local but I dont wanna have to use it. When its fixed, no command will be local
Reply
#4

o...you want a ooc command, lol.... you fail at describing.




https://sampwiki.blast.hk/wiki/Using_strcmp()


All you have to do is change that me command to some like /ooc, and stuff, then yeah. You should understand once you see coding.
Reply
#5

Quote:
Originally Posted by Steven82
o...you want a ooc command, lol.... you fail at describing.




https://sampwiki.blast.hk/wiki/Using_strcmp()


All you have to do is change that me command to some like /ooc, and stuff, then yeah. You should understand once you see coding.
This isnt what I mean. Thanks for the help but your getting the wrong idea.
Reply
#6

Код:
if(strcmp(cmd, "/o", true) == 0)
{
if(Mute[playerid] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced, /pm an admin and request an un-mute");
return 0;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /o [ooc chat]");
return 1;
}
if(noooc == 1)
{
SendClientMessage(playerid, COLOR_RED, "The OOC is Disabled by an admin.");
}
else
{
format(string, sizeof(string), "%s", result);
SendPlayerMessageToAll(playerid, string);
printf("%s", string);
return 1;
}
}
Edit it to your own needs
Reply
#7

Quote:
Originally Posted by Antonio (dominationrp.netii.net)
Quote:
Originally Posted by Steven82
o...you want a ooc command, lol.... you fail at describing.




https://sampwiki.blast.hk/wiki/Using_strcmp()


All you have to do is change that me command to some like /ooc, and stuff, then yeah. You should understand once you see coding.
This isnt what I mean. Thanks for the help but your getting the wrong idea.
Either your retarded for not reading my first post, and telling me i got the wrong idea, wow i would like to tell you again,



YOU ARE FUCKING RETARDED.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)