[AJUDA]CNN
#3

Poem assim:


pawn Код:
if(strcmp(cmd, "/cnn", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
if (PlayerInfo[playerid][pAdmin] >= 1 || [pTeam] = 24)
{
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: /cnn [cnn formatodotexto ~n~=NovaLinha ~r~=Vermelho ~g~=Verde ~b~=Azul ~w~=Branco ~y~=Amarelo]");
return 1;
}
format(string, sizeof(string), "~b~%s: ~w~%s",sendername,result);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GameTextForPlayer(i, string, 5000, 6);
}
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Voce nгo esta autorizado a usar este comando!");
return 1;
}
}
return 1;
}
Reply


Messages In This Thread
[AJUDA]CNN - by angels182 - 30.04.2010, 22:08
Re: [AJUDA]CNN - by Guilherme_Canani - 01.05.2010, 01:12
Re: [AJUDA]CNN - by andmeida10 - 01.05.2010, 06:43
Re: [AJUDA]CNN - by angels182 - 01.05.2010, 11:09
Re: [AJUDA]CNN - by TiagoPS - 07.05.2010, 01:30
Re: [AJUDA]CNN - by NathanLive - 07.05.2010, 13:58

Forum Jump:


Users browsing this thread: 2 Guest(s)