Help ANTI_AFK - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help ANTI_AFK (
/showthread.php?tid=655942)
Help ANTI_AFK -
TMapping - 03.07.2018
Hello, why does not my buddy walk around in dialog tables?
https://pastebin.com/Lshi1LzZ
Re: Help ANTI_AFK -
CodeStyle175 - 03.07.2018
wtf?
PHP код:
new Float:AFKPos[MAX_PLAYERS][3]
AFKCounter[MAX_PLAYERS];
AFKCheck(pid){
if(IsPlayerInRangeOfPoint(pid,1.0,AFKPos[pid][0],AFKPos[pid][1],AFKPos[pid][2])){
AFKCounter[pid]++;
}else{
AFKCounter[pid]=0;
}
if(AFKCountr[pid]>=5*60){
ShowPlayerDialog(pid,d_afkanswer,msgbox,"AFK","Are you afk?","Yes","No");
}
GetPlayerPos(pid,AFKPos[pid][0],AFKPos[pid][1],AFKPos[pid][2]);
return 1;
}
Re: Help ANTI_AFK -
TMapping - 03.07.2018
Quote:
Originally Posted by CodeStyle175
wtf?
PHP код:
new Float:AFKPos[MAX_PLAYERS][3]
AFKCounter[MAX_PLAYERS];
AFKCheck(pid){
if(IsPlayerInRangeOfPoint(pid,1.0,AFKPos[pid][0],AFKPos[pid][1],AFKPos[pid][2])){
AFKCounter[pid]++;
}else{
AFKCounter[pid]=0;
}
if(AFKCountr[pid]>=5*60){
ShowPlayerDialog(pid,d_afkanswer,msgbox,"AFK","Are you afk?","Yes","No");
}
GetPlayerPos(pid,AFKPos[pid][0],AFKPos[pid][1],AFKPos[pid][2]);
return 1;
}
|
Yes good code
Re: Help ANTI_AFK -
CodeStyle175 - 03.07.2018
any rep?
Re: Help ANTI_AFK -
Sew_Sumi - 03.07.2018
If you don't actually have anything to help or ask him, don't post.
Re: Help ANTI_AFK -
J0sh... - 03.07.2018
Quote:
Originally Posted by CodeStyle175
any rep?
|
ah yes i love rep
Re: Help ANTI_AFK -
TMapping - 03.07.2018
Hi, and how to put rep?
Re: Help ANTI_AFK -
CodeStyle175 - 03.07.2018
Sew_Sumi maybe just a little bit shut up if its okey to you just a maybe?
Re: Help ANTI_AFK -
TMapping - 03.07.2018
Quote:
Originally Posted by CodeStyle175
any rep?
|
Quote:
Originally Posted by CodeStyle175
Sew_Sumi maybe just a little bit shut up if its okey to you just a maybe?
|
How to rep?
Re: Help ANTI_AFK -
Sew_Sumi - 03.07.2018
Quote:
Originally Posted by CodeStyle175
Sew_Sumi maybe just a little bit shut up if its okey to you just a maybe?
|
You don't even make sense, so you should maybe take a backseat instead of throwing up copy-pasta solutions...
Maybe you should actually explain some shit and try to help, rather than simply posting up crap so that people are 'repping', for your bad practices.
Re: Help ANTI_AFK -
TMapping - 03.07.2018
Quote:
Originally Posted by CodeStyle175
Sew_Sumi maybe just a little bit shut up if its okey to you just a maybe?
|
Quote:
Originally Posted by CodeStyle175
wtf?
PHP код:
new Float:AFKPos[MAX_PLAYERS][3]
AFKCounter[MAX_PLAYERS];
AFKCheck(pid){
if(IsPlayerInRangeOfPoint(pid,1.0,AFKPos[pid][0],AFKPos[pid][1],AFKPos[pid][2])){
AFKCounter[pid]++;
}else{
AFKCounter[pid]=0;
}
if(AFKCountr[pid]>=5*60){
ShowPlayerDialog(pid,d_afkanswer,msgbox,"AFK","Are you afk?","Yes","No");
}
GetPlayerPos(pid,AFKPos[pid][0],AFKPos[pid][1],AFKPos[pid][2]);
return 1;
}
|
You must spread some Reputation around before giving it to CodeStyle175 again. When will i be able to give rep?
Re: Help ANTI_AFK -
Sew_Sumi - 03.07.2018
Obviously a bit of a troll, and doesn't realize what learning to code, even means... CodeStyle always simply posts up pastes, and yet, it doesn't teach anything...
Literally, when he disappears off the forum, and other people don't give you what you 'want', then what?
This is similar to the old "How much is an elegy" on the RP servers, the correct response is 'Find out ICly", but now, constant pastes of how much it is...
And as I said, when he's gone, how will you cope. There should almost be a rule of no simple copy-pastes without explanation of what it's for... CodeStyle simply pastes anything up, doesn't explain it, and yet, that's just spreading bad practice, and he's been pointed out for it too...