Posts: 427
Threads: 11
Joined: Apr 2009
Reputation:
0
What errors are you getting?
Posts: 882
Threads: 50
Joined: Jun 2012
Reputation:
0
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.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
There is no need for a AFK label anymore it is denoted by the hour glass also when attaching 3dtext labels is very buggy causing labels to get mixed up and double attached etc avoid using them.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
if(AFK[playerid] && strcmp(cmdtext,"/unafk",true))