[AJUDA]Erro no /listaway
#3

Tenta isso
pawn Код:
if(strcmp(cmd, "/afk", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s estб afk.", sendername);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
TogglePlayerControllable(playerid,0);
SetPlayerHealth(playerid, 9999);
PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
SetPlayerVirtualWorld(playerid, 1);
parafk = 1;
return 1;
}
return 1;
}

if(strcmp(cmd, "/sairafk", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s voltou para o servidor.", sendername);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
TogglePlayerControllable(playerid,1);
SetPlayerHealth(playerid, 100);
PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
SetPlayerVirtualWorld(playerid, 0);
parafk = 0;
return 1;
}
return 1;
}

if(strcmp(cmd, "/listaway", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(parafk == 1)
{
SendClientMessage(COLOR_LIGHTBLUE,"Jogadores Away:");
format(string, sizeof(string), "Jogador: %s.", sendername);
SendClientMessage(COLOR_WHITE, string);
return 1;
}
return 1;
}
Reply


Messages In This Thread
[AJUDA]Erro no /listaway - by Comando Thug - 11.02.2011, 23:07
Re: [AJUDA]Erro no /listaway - by Macintosh - 11.02.2011, 23:10
Re: [AJUDA]Erro no /listaway - by GuikBretas - 12.02.2011, 00:11
Re: [AJUDA]Erro no /listaway - by Ricop522 - 12.02.2011, 00:36
Re: [AJUDA]Erro no /listaway - by [RoxX]Ygor - 12.02.2011, 00:42
Re: [AJUDA]Erro no /listaway - by Ricop522 - 12.02.2011, 00:57
Re: [AJUDA]Erro no /listaway - by Macintosh - 12.02.2011, 01:04
Re: [AJUDA]Erro no /listaway - by Ricop522 - 12.02.2011, 01:26
Re: [AJUDA]Erro no /listaway - by Comando Thug - 12.02.2011, 12:58

Forum Jump:


Users browsing this thread: 3 Guest(s)