[Ajuda] Systema /f
#1

pessoal

quero trocar o tipow


/roubar

quero que o cara so chegue no local e aperte f pra roubar

alguem pode ajudar ?
Reply
#2

manda as linhas de cmds referente aos comandos para roubar ...

@EDIT
Por qeu o titulo do topico estб assim: "Systema /f" ? O que vocк realmente quer ?
Reply
#3

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
 if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
 {
  // FUNЗГO ROUBAR.
  return 1;
 }
 return 1;
}
Reply
#4

1 - Nгo й isso, Shickcard. Eu to pedindo que ele poste os comandos /roubardeposito, /roubarbanco, /roubarpref e etc.

2 - Ja vi no wiki-samp que tem lб o GetPlayeKeys, mas queria saber qual botгo cada um representa ... Diz ae =D
Reply
#5

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
1 - Nгo й isso, Shickcard. Eu to pedindo que ele poste os comandos /roubardeposito, /roubarbanco, /roubarpref e etc.

2 - Ja vi no wiki-samp que tem lб o GetPlayeKeys, mas queria saber qual botгo cada um representa ... Diz ae =D
Isso que eu postei й o que?
Se nгo for um sistema de apertar a key f e executar uma funзгo eu estou ficando abilolado ou nгo? -.-'
Reply
#6

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        OnPlayerCommandText(playerid, "/roubarcofre");
        OnPlayerCommandText(playerid, "/roubarprefeitura");
        OnPlayerCommandText(playerid, "/roubarlspd");
        return 1;
    }
    return 1;
}
Reply
#7

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        OnPlayerCommandText(playerid, "/roubarcofre");
        OnPlayerCommandText(playerid, "/roubarprefeitura");
        OnPlayerCommandText(playerid, "/roubarlspd");
        return 1;
    }
    return 1;
}
Ricop522, assim iria executar os 3 comandos ao mesmo tempo!
Reply
#8

Correto seria assim.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
       if(PlayerToPoint(25.0,playerid,/*X,Y,Z*/)) // COFRE 1
       {
         OnPlayerCommandText(playerid, "/roubarcofre");
       }
       else if(PlayerToPoint(25.0,playerid,/*X,Y,Z*/)) // COFRE 2
       {
         OnPlayerCommandText(playerid, "/roubarprefeitura");
       }
       else if(PlayerToPoint(25.0,playerid,/*X,Y,Z*/)) // COFRE 3
       {
         OnPlayerCommandText(playerid, "/roubarlspd");
         return 1;
        }
        return 1;
    }
    return 1;
}
Reply
#9

Malz ae ... Li errado, pensei que ele queria substituir todos aqueles cmds de /roubardeposito e etc para sу /roubar.

Ja vi no wiki-samp que tem lб o GetPlayeKeys, mas queria saber qual botгo cada um representa ... Diz ae =D
Reply
#10

PHP код:
TAB(apй)
ENTER16 (apй)(de carro)
Caps Lock128 (apй) || (de carro)
F16 (apй)(de carro)
H(de carro)
Tecla 2,@ e І512 (de carro)
End4096 (de carro)
Num Pad 48192 (de carro)(a pй)
Num Pad 616384 (de carro)(a pй)
Num Pad 82048 (de carro)
Num Pad 24096 (de carro)
Num Pad 0(de carro) || (a pй)
Q256 (de carro)
W(de carro)
E64 (de carro)
S32 (de carro)
H(de carro)
Espaзo128 (de carro) || (a pй)
Delete128 (a pй)
C(a pй)
Num Pad 1512 (a pй)
RCtrl32 (a pй)
Alt Gr(a pй)
LShift32 (a pй)
LCtrl(a pй)
Alt1024 (a pй
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)