[Ajuda] Keys
#7

Quote:
Originally Posted by ProKillerpa
Посмотреть сообщение
Presta atenзгo nй amigo

PHP код:

#define PRESS(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
// public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
if(PRESS(KEY_YES))
{
if(!
IsPlayerInRangeOfPoint(playerid7.03055,-708,11)) return 1;//chamar elevador embaixo
MoveObject(elevador,3028.8000000,-704.5996000,10.5,2.0);
MoveObject(elevador2,3042.8000000,-705.5996000,10.5,2.0);
SendClientMessage(playerid,COR_RED"[INFO] Elevador a Caminho.");
return 
1;
}
if(
PRESS(KEY_YES))
{
if(!
IsPlayerInRangeOfPoint(playerid7.03040,-712,54.90001525879)) return 1;//chamar elevador em cima
MoveObject(elevador,3028.8000000,-704.5996000,53.799999237061,2.0);
MoveObject(elevador2,3042.8000000,-705.5996000,53.799999237061,2.0);
SendClientMessage(playerid,COR_RED"[INFO] Elevador a Caminho.");
return 
1;
}
return 
0;

Й Press, nгo Pressed.
Vc tinha Posto PRESSED, Agora deu edite. Mas de Boa.

Tirou Minha Duvida

Vlw.
Reply


Messages In This Thread
Keys - by GHLEMES - 06.04.2014, 19:49
Re: Keys - by ProKillerpa - 06.04.2014, 19:54
Re: Keys - by GHLEMES - 06.04.2014, 19:58
Re: Keys - by ProKillerpa - 06.04.2014, 20:03
Re: Keys - by GHLEMES - 06.04.2014, 20:08
Re: Keys - by ProKillerpa - 06.04.2014, 20:11
Re: Keys - by GHLEMES - 06.04.2014, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)