Jump to content
  • 0

pomoc AFK


HELP

Dotaz

4 odpovědí na tuto otázku

Recommended Posts

  • 0
Ahoj prosim neporadite my ??

ako urobit AFK ...

Ze da hrac napr .

/afk idem na WC

tak napise vsetkym

[AFK] Hrac NICK je AFK [ odkaz IDEM NA WC ]

 

nahoru do modu

#define dcmd(%1,%2,%3) if ((strcmp(%3, "/%1", true, %2+1) == 0)&&(((%3[%2+1]==0)&&(dcmd_%1(playerid,"")))||((%3[%2+1]==32)&&(dcmd_%1(playerid,%3[%2+2]))))) return 1
new JeAfk[MAX_PLAYERS];

 

do OnPlayerSpawn

JeAfk[playerid] = 0;

 

do OnPlayerCommandsText si dej toto:

dcmd(afk,3,cmdtext);

 

nekam do modu

       new Jmeno[MAX_PLAYER_NAME];
dcmd_afk(playerid,params[])
{
if(JeAfk[playerid] == 0){
       JeAfk[playerid] = 1;
       format(string, sizeof(string), "%s je AFK! (Duvod: %s)", Jmeno,params);
      SendClientMessageToAll(barva,string);
       TogglePlayerControllable(playerid,0);
       }else{
       format(string, sizeof(string), "%s je online! (Duvod: %s)", Jmeno,params);
      SendClientMessageToAll(barva,string);
       TogglePlayerControllable(playerid,1);
     JeAfk[playerid] = 0;
}
return 1;
}

melo by to fungovat ;) psal sem to rucne

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...