AFK Sys, 3dTextLabel .. -
daniel2499 - 07.05.2013
http://pastebin.com/sgDkFnnC
what problem with 3dTextLabel ? i dont check this FS if works ..
i think i dont put it good ..
Sorry For my bad English ..
Re: AFK Sys, 3dTextLabel .. -
WoodPecker - 07.05.2013
What errors are you getting?
Re: AFK Sys, 3dTextLabel .. -
daniel2499 - 07.05.2013
Quote:
Originally Posted by WoodPecker
What errors are you getting?
|
no errors, but i think 3DTextLabel Will not work ..
Re: AFK Sys, 3dTextLabel .. -
Yashas - 07.05.2013
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.
Re: AFK Sys, 3dTextLabel .. -
daniel2499 - 07.05.2013
Quote:
Originally Posted by Yashas
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.
|
can you fix it ?
i really need it ..
Re: AFK Sys, 3dTextLabel .. -
Yashas - 07.05.2013
Quote:
Originally Posted by daniel2499
can you fix it ?
i really need it ..
|
I told everything ,what,how and where.
Just try what I told, it will fix!!
Re: AFK Sys, 3dTextLabel .. -
Pottus - 07.05.2013
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.
Re: AFK Sys, 3dTextLabel .. -
Pottus - 07.05.2013
if(AFK[playerid] && strcmp(cmdtext,"/unafk",true))
Re: AFK Sys, 3dTextLabel .. -
Yashas - 07.05.2013
Oops sorry,
its supposed to be if(AFK[playerid] && strcmp(cmdtext,"/unafk",true))
Re: AFK Sys, 3dTextLabel .. -
daniel2499 - 07.05.2013
Quote:
Originally Posted by Yashas
Oops sorry,
its supposed to be if(AFK[playerid] && strcmp(cmdtext,"/unafk",true))
|
like this ? :
http://pastebin.com/zMkhMJcf