Jump to content
  • 0

pomoc Afk od Ewwe


Fabricator

Dotaz

Zdravim ;) Afk system od Ewweho je chyný

ked dam na servery /afk a stlacim Tam mám tam že [AFK]Kura ale ked dam zvo /afk a ked chcem hrat tak potom mám meno že ]Kura

 

tu je cod:

CMD:afk(playerid,params[])
{
new Name[32],string[128];
GetPlayerName(playerid, Name, 32);
if(GetPVarInt(playerid,"AFK") == 0)
{
strins(Name, "[AFK]", 0);
SetPlayerName(playerid, Name);
/*----------------------------*/
format(string,128,"Hráč %s je nyní AFK (\"%s\").",Name,params);
SendClientMessageToAll(-1,string);
/*-----------------------------*/
TogglePlayerControllable(playerid,false);
SetPVarInt(playerid,"AFK",1);
}else{
strdel(Name, 0, 4);
SetPlayerName(playerid,Name);
/*-----------------------------*/
format(string,128,"Hráč %s je zpět.",Name);
SendClientMessageToAll(-1,string);
/*-----------------------------*/
TogglePlayerControllable(playerid,true);
DeletePVar(playerid,"AFK");
}
return 1;
}

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Administrátor

Jo jak napsal petr když jsem to psal zapoměl jsem že musím zastavit mazání až na 5 znaku je to má chyba ve scriptu

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...