[Pedido] Include detectar ESC/PAUSE - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Include detectar ESC/PAUSE (
/showthread.php?tid=633777)
Include detectar ESC/PAUSE -
pdonald - 07.05.2017
Eu tinha uma include que detectava de ESC/PAUSE, mas formatei o PC eu esqueci de fazer backup
Fui pegar ela aqui no forumsamp e o link do pastebin tava off...
Alguйm tem isso aн?
Todas que eu acho aqui agora sгo de tempo parado, naquela include assim que dava esc jб detectava...
Re: Include detectar ESC/PAUSE -
CZ - 07.05.2017
http://www.mediafire.com/file/6omras...layerPause.inc
Re: Include detectar ESC/PAUSE -
idegod - 07.05.2017
Quote:
Originally Posted by CZ
|
Nгo tem como postar em
https://hastebin.com/ ~
https://pastebin.com/
Nгo?
Re: Include detectar ESC/PAUSE -
CaioTJF - 07.05.2017
Pra fazer essa funзгo, й sу vocк verificar se a callback OnPlayerUpdate estб sendo chamada.
Se nгo estб, o jogador estб de esc.
Re: Include detectar ESC/PAUSE -
IlanZ - 07.05.2017
Quote:
Originally Posted by idegod
|
https://hastebin.com/docodefuwo.cpp
Re: Include detectar ESC/PAUSE -
pdonald - 10.05.2017
Quote:
Originally Posted by CaioTJF
Pra fazer essa funзгo, й sу vocк verificar se a callback OnPlayerUpdate estб sendo chamada.
Se nгo estб, o jogador estб de esc.
|
Obrigado, nгo sabia disso!
Re: Include detectar ESC/PAUSE -
ViniBorn - 10.05.2017
http://forum.sa-mp.com/showpost.php?...71&postcount=7
Re: Include detectar ESC/PAUSE -
s4kuL - 10.05.2017
Й bem mas fбcil utilizar este mйtodo, uso no meu gamemode.
PHP Code:
new AFKTime[MAX_PLAYERS];
CMD:pausados(playerid)
{
new String[32], String2[128];
strcat(String2, "ID\tNick\n");
for(new i, j = GetPlayerPoolSize(); i <= j; i++)
{
if(!IsPlayerConnected(i))
continue;
//Modo de verificaзгo
if(gettime() - AFKTime[i] > 3) //3 segundos sem resposta.
{
format(String,sizeof(String),"%d\t%s\n", i, GetName(i));
strcat(String2, String);
}
}
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_TABLIST_HEADERS, "Jogadores Ausente", String2, "Fechar", "");
return 1;
}
public OnPlayerUpdate(playerid)
{
AFKTime[playerid] = gettime();
return 1;
}
GetName(playerID)
{
new n_ome[MAX_PLAYER_NAME];
GetPlayerName(playerID, n_ome, sizeof n_ome);
return n_ome;
}
Re: Include detectar ESC/PAUSE -
Scorpion659 - 10.05.2017
@retirado