AFK with reason
#1

Quote:

if(strcmp("/afk",cmd,true)==0)
{
if(PlayerInfo[PLAYER_AFK][playerid])return SendMessage(playerid,"Du bist schon AFK!");
new string[128];

if(!strlen(cmdtext[5]))format(string,sizeof(string),"%s ist jetzt AFK.",PlayerName(playerid));
else format(string,sizeof(string),"*** %s ist jetzt AFK. (Grund: %s)",PlayerName(playerid),cmdtext[5]);
SendLanguageMessageToAll(LANG_DE,string);


PlayerInfo[PLAYER_AFK][playerid]=true;
TogglePlayerControllable(playerid,false);
return 1;
}

if(strcmp("/re",cmd,true)==0)
{
if(!PlayerInfo[PLAYER_AFK][playerid])return SendMessage(playerid,"Du bist nicht AFK!");
new string[128];

format(string,sizeof(string),"%s ist jetzt nicht mehr AFK.",PlayerName(playerid));
SendLanguageMessageToAll(LANG_DE,string);


PlayerInfo[PLAYER_AFK][playerid]=false;
if(!Freezed[playerid])TogglePlayerControllable(playerid,true);
return 1;
}

is there a mistake?

Reply


Messages In This Thread
AFK with reason - by DauerDicht - 28.08.2009, 20:52
Re: AFK with reason - by Correlli - 28.08.2009, 21:46

Forum Jump:


Users browsing this thread: 1 Guest(s)