help!!!!!!!!
#1

How do I get a player can only AFK Fik stopped after 10s?

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


Messages In This Thread
help!!!!!!!! - by keller012 - 08.07.2010, 16:20
Re: help!!!!!!!! - by keller012 - 08.07.2010, 18:56
Re: help!!!!!!!! - by CAR - 08.07.2010, 19:41

Forum Jump:


Users browsing this thread: 1 Guest(s)