Posts: 94
Threads: 26
Joined: Jan 2010
Reputation:
0
Can some make or give me a link to a system or script add-on that will make it so /o is OOC chat and just normal text is only for players near you?
Thank you if you do.
,Roney_Remington
Posts: 86
Threads: 3
Joined: Sep 2009
Reputation:
0
why not just use /b
if(strcmp(cmd, "/b", true) == 0)//local ooc (Jawz edition)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
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: /b [local ooc chat]");
return 1;
}
if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "(( Stranger Says: %s ))", result);
}
else
{
format(string, sizeof(string), "(( [%i] %s Says: %s ))", playerid, sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}
and if you want the command to be /o then just change the command simple!
Posts: 94
Threads: 26
Joined: Jan 2010
Reputation:
0
wh functions would i need for the /b thing?