Mein Afk System
if(strcmp("/afk",cmdtext,true) == 0)
{
if(PlayerCuffed[playerid] >= 1 PlayerTied[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_GREY,"Du kannst jetzt nicht AFK gehen!");
return 1;
}
if(!M_Bot[playerid][PAFK])
{
SendClientMessage(playerid,0x33AA33AA,"In 15 Sekunden wirst du in den AFK-Modus gebracht!");
KillTimer(M_Bot[playerid][PAFKTimer]);
M_Bot[playerid][PAFKTimer] = SetTimerEx("AFKOn",15000,0,"i",playerid);
}
else SendClientMessage(playerid,0xAA3333AA,"Du bist schon AFK!");
return 1;
}