14.08.2012, 22:35
Eu queria um /b Sу para admin pra quando terminar de atender a senha dizer /ts Espero ter ajudado, Bom Jogo
/TS й o /b sу mudei o comando queria que editassem rpa sу adm usar .
/TS й o /b sу mudei o comando queria que editassem rpa sу adm usar .
pawn Код:
//-----------------------------------------------------------------------------------------
if(strcmp(cmd, "/b", true) == 0)//local ooc
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк ainda nгo esta logado !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, COLOR_RED, "|-Vocк foi mutado por um admin, nгo pode falar-|");
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, "USE: /b [local ooc chat]");
return 1;
}
if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "(( Mascarado Diz: %s )) ", result);
}
else
{
for(new luplay=0;luplay<6;luplay++){
if(strfind(result, IP[luplay], true) != -1){result = "PКGO EM FRБGRANTE!!!Jogador tentando divulgar algum IP.";}}
format(string, sizeof(string), "(( [%i] %s Diz: %s ))", playerid, sendername, result);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}