[Pedido] Jatinho Particular
#1

No SAMP, quando se tenta entrar de carona no Aviгo Shamal (ID 519), nгo se entra no aviгo, neste caso, eu queria que quando tentasse dar "G" neste aviгo, fosse setado para este interior: Jб Tenho As Posiзхes X, Y e Z ...

Reply
#2

Sim. Pode usar as funзхes que detectam entrada em um veнculo.
Reply
#3

Pode fazer o cуdigo disso pra min ??

'--'
Reply
#4

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/OnPlayerStateChange
https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerInterior
Reply
#5

Aff, a TAG do tуpico й [PEDIDO] e nгo [AJUDA] ...
Reply
#6

Quote:
Originally Posted by LoostGamer
View Post
Aff, a TAG do tуpico й [PEDIDO] e nгo [AJUDA] ...
PREGUIЗA Й FODA
PREGUIЗA Й FODA
PREGUIЗA Й FODA
PREGUIЗA Й FODA
PREGUIЗA Й FODA
Reply
#7

OU, MANO, UMA COISA Й PREGUIЗA, OUTRA COISA Й NГO SABER FAZER ¬¬
Reply
#8

Quote:
Originally Posted by LoostGamer
View Post
OU, MANO, UMA COISA Й PREGUIЗA, OUTRA COISA Й NГO SABER FAZER ¬¬
Chega um dia que teras que sair para o mundo . kkkk
Aprenda a fazer ! e facil.
Reply
#9

Ta ae:

pawn Code:
new pVarShamal[MAX_PLAYERS];

public OnPlayerStateChange(playerid, newstate, oldstate) {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_PASSENGER && GetVehicleModel(vehicleid) == 519) {
        pVarShamal[playerid] = vehicleid;
        SetPlayerPos(playerid, X, Y, Z); //Coloque suas Coords do Int do Shamal.
    }
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
    if((newkeys & 16) && pVarShamal[playerid]) {
        new Float: pX, Float: pY, Float: pZ;
        GetVehiclePos(pVarShamal[playerid], pX, pY, pZ);
        SetPlayerPos(playerid, pX, pY, (pZ + 2.0));
        pVarShamal[playerid] = 0;
    }
    return 1;
}
Reply
#10

#TOPIC: Se O player apertar G novamente ele sai do aviгo ??

@OFF: Poatz, Finalmente alguйm que saber ajudar os outros ...
Reply
#11

Quote:
Originally Posted by LoostGamer
View Post
#TOPIC: Se O player apertar G novamente ele sai do aviгo ??

@OFF: Poatz, Finalmente alguйm que saber ajudar os outros ...
Se ele apertar 'F' sim.
Reply
#12

Quote:
Originally Posted by LoostGamer
View Post
OU, MANO, UMA COISA Й PREGUIЗA, OUTRA COISA Й NГO SABER FAZER ¬¬
entгo aprenda uй ? a forum samp й um lugar para ajudar os outros nao pra ficar dando code pronto
Reply
#13

Quote:
Originally Posted by Nice-.-
View Post
entгo aprenda uй ? a forum samp й um lugar para ajudar os outros nao pra ficar dando code pronto
pra que server o TAG [Pedido] aceite isso amigo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)