08.07.2010, 16:20
How do I get a player can only AFK Fik stopped after 10s?
I use this cmd to stay afk
I use this cmd to stay afk
Код:
{ GetPlayerName(playerid, Name, 24); if (strcmp("/afk", cmdtext, true, 10) == 0) { if(Afk[playerid]==0){ Afk[playerid]=1; Timer[playerid] = SetTimer("SendMessage",100,0); SetPlayerVirtualWorld(playerid, 15); TogglePlayerControllable(playerid,0); format(string, sizeof(string), "%s this afk", Name); SendClientMessageToAll(0x33CCFFAA, string); }else{SendClientMessage(playerid,0xFF0000AA, "You're on AFK mode to exit type /exitafk");} return 1; }