07.05.2013, 14:43
You code doesn't allow to do "/unafk" and its a dead end for a player.
You check if a player is AFK and display him a message that he can't use commands and tell him to type /unafk and when he does he gets "our AFK, You Cant Use Commands , for back Type : /unafk".
Add if(AFK[playerid]) && strcmp(cmd,"unafk",true)) ,this code will execute if he is AFK and he is using a cmd that is not /unafk if he types unafk he can proceed.
And your error is you forgot to "GetPlayerPos" before Create3DTextLabel and in addition to that your new AFK[MAX_PLAYERS] is a wrong data-type and it won't work ,you need a Text3D variable to hold 3DTexts.
You check if a player is AFK and display him a message that he can't use commands and tell him to type /unafk and when he does he gets "our AFK, You Cant Use Commands , for back Type : /unafk".
Add if(AFK[playerid]) && strcmp(cmd,"unafk",true)) ,this code will execute if he is AFK and he is using a cmd that is not /unafk if he types unafk he can proceed.
And your error is you forgot to "GetPlayerPos" before Create3DTextLabel and in addition to that your new AFK[MAX_PLAYERS] is a wrong data-type and it won't work ,you need a Text3D variable to hold 3DTexts.