Jump to content
  • 0

Question

Posted

#define AFKTime 1

#define COLOR_AFK 0x524F50AA

public OngameModeInit

SetTimer("AFKKicker", 60000, true);

public OnPlayerCommandText(playerid, cmdtext[])

la sfarsitul gamemodului am asta

////////////afk///

forward AFKKicker();

public AFKKicker()

{

  for(new i = 0; i <= MAX_PLAYERS; i++)

  {

      if(PPos[1] == 0)

      {

          GetPlayerPos(i,PPos[0],PPos[1],PPos[2]);

          return 1;

      }

      new Float:x,Float:y,Float:z;

      GetPlayerPos(i,x,y,z);

      if(x == PPos[0] && y == PPos[1] && z == PPos[2])

      {

          AFKMins++;

          if(AFKMins >= AFKTime)

          {

            SetPlayerColor(i,0x524F50AA);

        }

      }

      else

      {

                            }

  }

  return 1;

}

va rog sa imi spunati daca stiti cum fac cand playerul lasa afk sai apara culoare gri  dupa un minut si cand nu mai este afk sai dispara si sa fie culoare pe care o avea inainte sa lase afk

si daca am gresit undeva va rog sa-mi ziceti

Please help!

3 answers to this question

Recommended Posts

Posted

[pawn]public AFKKicker()

{

for(new i = 0; i <= MAX_PLAYERS; i++)

{

if(PPos[1] == 0)

{

GetPlayerPos(i,PPos[0],PPos[1],PPos[2]);

return 1;

}

new Float:x,Float:y,Float:z;

GetPlayerPos(i,x,y,z);

if(x == PPos[0] && y == PPos[1] && z == PPos[2])

{

AFKMins++;

if(AFKMins >= AFKTime)

{

SetPlayerColor(i,0x524F50AA);

}

}

else

{

SetPlayerToTeamColor(i);

}

}

return 1;

}[/pawn]

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Posted

si inca o intrebare daca nu va suparati

cum faca ca nu merge bn uneori apare culoare gri alteori nu apare imi puteti spune va rog dc nu merge bn?

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.