[Ajuda] Keys
#8

pawn Код:
if(!strcmp(cmdtext, "/sair", true)) // Seu comando /sair.
{
      SetPlayerPos(playerid, posx, posy, posz);
      SetPlayerInterior(playerid, 0);
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
     if((newkeys == KEY_SECONDARY_ATTACK)) // KEY_SECONDARY_ATTACK = F
     {
           OnPlayerCommandText(playerid,"/sair") // Comando que serб chamado ao apertar F.
           //Coloca mais.
     }
     return 1;
}
Reply


Messages In This Thread
[Ajuda] Keys - by ViictorDaay- - 03.06.2012, 22:02
Re: [DUVIDA] Keys - by Ades - 03.06.2012, 22:05
Re: [DUVIDA] Keys - by ChrisRock - 03.06.2012, 22:05
Re: [DUVIDA] Keys - by ViictorDaay- - 03.06.2012, 22:08
Re: [DUVIDA] Keys - by @Riichard - 03.06.2012, 22:11
Re: [DUVIDA] Keys - by ViictorDaay- - 03.06.2012, 22:19
Re: [DUVIDA] Keys - by @Riichard - 03.06.2012, 22:20
Re: [DUVIDA] Keys - by ChrisRock - 03.06.2012, 22:22
Re: [DUVIDA] Keys - by leonardo1434 - 03.06.2012, 22:38
Re: [DUVIDA] Keys - by paulor - 03.06.2012, 22:42

Forum Jump:


Users browsing this thread: 1 Guest(s)