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
#2

Is it hard to compile and try it on server? That's the best way to know if there is a mistake.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)