[HELP]System - 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]System (
/showthread.php?tid=283016)
[HELP]System -
TheBluec0de - 13.09.2011
as I do that when a player and not go AFK in the vehicle?
SOLVED
Re: [HELP]System -
=WoR=G4M3Ov3r - 13.09.2011
Huh ?, What do you mean ?
Re: [HELP]System -
TheBluec0de - 13.09.2011
I want that when the player and the vehicle, do not send in the state AFK
Re: [HELP]System -
Basicz - 13.09.2011
pawn Код:
forward Player_Detect_Afk(playerid);
public Player_Detect_Afk(playerid)
{
if ( IsPlayerInAnyVehicle( playerid ) )
return 0;
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"[AFK]%s",name);
SetPlayerName(playerid, string);
Player[playerid][Inactive] = true;
format(string,sizeof(string),"{C14124}%s {FFFFFF}has gone AFK",name);
SendClientMessageToAll(-1,string);
TogglePlayerControllable(playerid,0);
return 1;
}
Perhaps?
Re: [HELP]System -
TheBluec0de - 13.09.2011
yes, Thank you