22.01.2012, 13:53
Alguem pode fazer este comando por favor. sei que й simples mais nгo estou conseguindo codar
//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;
}