SA-MP Forums Archive
[AJUDA]Comando de /AFK e /SAIRAFK - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Comando de /AFK e /SAIRAFK (/showthread.php?tid=312703)



[AJUDA]Comando de /AFK e /SAIRAFK - Lordi_Maia - 22.01.2012

Alguem pode fazer este comando por favor. sei que й simples mais nгo estou conseguindo codar


Re: [AJUDA]Comando de /AFK e /SAIRAFK - AleeFerreira - 22.01.2012

pawn Код:
//topo
new AFK[MAX_PLAYERS];

//onplayercommandtext

if(!strcmp(cmdtext,"/afk",true))
{
    if(AFK[playerid] == 1) return SendClientMessage(playerid,-1,"Vocк jб estб AFK! digite /sairafk!");
    AFK[playerid] = 1;
    TogglePlayerControllable(playerid, true);
    SendClientMessage(playerid,-1,"Vocк estб AFK agora!");
    return true;
}

if(!strcmp(cmdtext,"/sairafk",true))
{
    if(AFK[playerid] == 0) return SendClientMessage(playerid,-1,"Vocк nгo estб afk!");
    AFK[playerid] = 0;
    TogglePlayerControllable(playerid, false);
    SendClientMessage(playerid,-1,"Vocк saiu do AFK!");
    return true;
}



Re: [AJUDA]Comando de /AFK e /SAIRAFK - Lordi_Maia - 22.01.2012

Obrigado aos 2, sou novo nesse negуcio de Codar. Valeu