Jump to content

Cum sa se repare masina cu o simpla comanda!


Samy Romafia

Recommended Posts

Cum sa se repare masina cu o simpla comanda!

Tutorial 100% by me XD

Cand faceti o cursa si tamponati masina trebe mult sa scriti /fix sau alte comande pentru a repara masina.

Acuma GATA. XD

Folosind aceasta comanda puteti sa va reparati masina imediat!

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_SUBMISSION || newkeys == KEY_SUBMISSION && newkeys == KEY_UP)
    {
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    else
    {
    RepairVehicle(GetPlayerVehicleID(playerid));
    SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
    GameTextForPlayer(playerid, "~g~Vehicul Reparat!", 2000, 4);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
    return 1;
    }
    }
    if(newkeys == KEY_FIRE)
    {
    }
	return 1;
}
O punenti de-asupra la:
public OnPlayerConnect(playerid)

Si dati F5.

Gata simpla.

Pa la totiiiii  :P :P :P :P :P ::)

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

ba da numa ca acolo mam incurcat cu return si nu am reusit sa pun 2 comande inpreuna.

cu comandaasta se poate face mai multe variante

in loc de asta:

    RepairVehicle(GetPlayerVehicleID(playerid));
    SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
    GameTextForPlayer(playerid, "~g~Vehicul Reparat!", 2000, 4);
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
puteti sa puneti exemplu:
SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);
------------------------------------
sau 
------------------------------
SetPlayerHealth(playerid,100.0);
etc,

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.