Jump to content

Question

Posted

Am si eu o problema.

[pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

{

return 1;

}

[/pawn]

Imi merge ca un mos..si am cautat pe net alte stiluri de mers imi da niste porcarii eu cred ca de aiici e problema am incercat sa remediez dar imi da errori am lasat asa. poate ma ajutati voi cu alt stil ..sa fie un stil normal

2 answers to this question

Recommended Posts

Posted

La [pawn]public OnGameModeInit()[/pawn]

Bagi

[pawn]    UsePlayerPedAnims();[/pawn]

[glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow]

Posted

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

{

return 1;

}

Se foloseste la masini xD .

EX:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

{

if( newkeys == KEY_SUBMISSION ) // daca playerul apasa KEY_SUBMISSION = 2 

{ // paranteza care deschide comanda

if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER ) // verifica daca playerul conduce masina

{ // paranteza care deschide codu

RepairVehicle( GetPlayerVehicleID( playerid ) ); // functia care repara vehiculul GetPlayerVehicleID( playerid ) ia id de la masina

} // paranteza care inchide codu

} // paranteza care inchide comanda

return 1;

}

idiots.png
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.