[AJUDA]Comando de /AFK e /SAIRAFK
#1

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

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;
}
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)