[Ajuda] Systema /f - 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: [Ajuda] Systema /f (
/showthread.php?tid=251625)
[Ajuda] Systema /f -
SERRA93 - 27.04.2011
pessoal
quero trocar o tipow
/roubar
quero que o cara so chegue no local e aperte f pra roubar
alguem pode ajudar ?
Re: Systema /f -
Shadoww5 - 27.04.2011
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 ?
Re: Systema /f -
Macintosh - 27.04.2011
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
// FUNЗГO ROUBAR.
return 1;
}
return 1;
}
Re: Systema /f -
Shadoww5 - 27.04.2011
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
Re: Systema /f -
Macintosh - 27.04.2011
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? -.-'
Re: Systema /f -
Ricop522 - 27.04.2011
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;
}
Re: Systema /f -
The Knight - 27.04.2011
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!
Re: Systema /f -
Macintosh - 27.04.2011
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;
}
Re: Systema /f -
Shadoww5 - 27.04.2011
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
Re: [Ajuda] Systema /f -
Ricop522 - 28.04.2011
PHP код:
TAB: 1 (apй)
ENTER: 16 (apй)(de carro)
Caps Lock: 128 (apй) || 2 (de carro)
F: 16 (apй)(de carro)
H: 2 (de carro)
Tecla 2,@ e І: 512 (de carro)
End: 4096 (de carro)
Num Pad 4: 8192 (de carro)(a pй)
Num Pad 6: 16384 (de carro)(a pй)
Num Pad 8: 2048 (de carro)
Num Pad 2: 4096 (de carro)
Num Pad 0: 1 (de carro) || 4 (a pй)
Q: 256 (de carro)
W: 8 (de carro)
E: 64 (de carro)
S: 32 (de carro)
H: 2 (de carro)
Espaзo: 128 (de carro) || 8 (a pй)
Delete: 128 (a pй)
C: 2 (a pй)
Num Pad 1: 512 (a pй)
RCtrl: 32 (a pй)
Alt Gr: 4 (a pй)
LShift: 32 (a pй)
LCtrl: 4 (a pй)
Alt: 1024 (a pй)