Jump to content
  • 0

System AFK


Deejaybwg

Question

Am sistemul asta de AFK:

if(strcmp("/afk",cmdtext,true) ==0)
{
	new name[MAX_PLAYER_NAME], afkstringa[128];
	GetPlayerName( playerid, name, MAX_PLAYER_NAME );
	format(afkstringa, 128, "~w~%s is now AFK!",name);
	GameTextForAll( afkstringa, 2000, 1 );
	TogglePlayerControllable(playerid,0);
	return 1;
}

As vrea si cand dau /back, sa apara .. is now back sau ceva asemanator...

www.youtube.com/thebwgg

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

if(strcmp("/back",cmdtext,true) ==0)
{
	new name[MAX_PLAYER_NAME], afkstringa[128];
	GetPlayerName( playerid, name, MAX_PLAYER_NAME );
	format(afkstringa, 128, "~w~%s is now back!",name);
	GameTextForAll( afkstringa, 2000, 1 );
	TogglePlayerControllable(playerid,1);
	return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.