Help /B and IC chat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help /B and IC chat (
/showthread.php?tid=238260)
Help /B and IC chat -
Djankaa - 11.03.2011
Can me somebody say how do I create IC chat and the OOC chater /b pleas i need it !
sry for bad english im from croatia
Re : Help /B and IC chat -
Vukilore - 11.03.2011
with zcmd:
pawn Код:
COMMAND:b(playerid, params[])
{
new Message[128], string[ 128 ];
if( sscanf( params, "s", Message) )
{
SendClientMessage( playerid, COLOR_GREY, "SYNTAXE: /b <MESSAGE OOC>" );
}
else
{
if(strlen(Message) < 1)
{
return true;
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format( string, sizeof( string ), "(( %s: %s))", sendername, Message);
NearbyMessage(playerid, COLOR_PURPLE, string); // or use proxdetector
}
}
return 1;
}
Re: Help /B and IC chat -
Djankaa - 11.03.2011
i have make now IC chat pleas can somebody create me OOC chat /B the mod is my own and i use Strcmd
Re : Help /B and IC chat -
Vukilore - 11.03.2011
With strcmd, if you type /bxxxxxx, that result ((Your_Nick: xxxxxx))
because strcmp compares string ...