Longer chat
#4

pawn Код:
//----------------------------------[ooc]-----------------------------------------------
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
    if(gPlayerLogged[playerid] == 0)
    {
      SendClientMessage(playerid, COLOR_GREY, "  You havent logged in yet !");
      return 1;
    }
if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "  The OOC channel has been disabled by an Admin !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "**ERROR: You can't speak, you have been silenced by an Administrator!");
SendClientMessage(playerid, TEAM_CYAN_COLOR, "**HINT: You may (/pm) an Admin to ask to be unsilenced.");
SendClientMessage(playerid, TEAM_CYAN_COLOR, "**HINT: It is up to the Admin's discretion whether or not to unsilence you.");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
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)oc [ooc chat]");
return 1;
}
format(string, sizeof(string), "[%i] %s: %s " , playerid, sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
return 1;
}
Reply


Messages In This Thread
Longer chat - by shaun9 - 13.04.2009, 21:55
Re: Longer chat - by [IB]Scorcher - 13.04.2009, 21:59
Re: Longer chat - by shaun9 - 13.04.2009, 22:08
Re: Longer chat - by [IB]Scorcher - 13.04.2009, 22:18
Re: Longer chat - by shaun9 - 13.04.2009, 22:23
Re: Longer chat - by [IB]Scorcher - 13.04.2009, 22:25
Re: Longer chat - by shaun9 - 13.04.2009, 22:39
Re: Longer chat - by [IB]Scorcher - 13.04.2009, 23:26
Re: Longer chat - by ICECOLDKILLAK8 - 13.04.2009, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)