Samy Romafia Posted June 5, 2010 Report Share Posted June 5, 2010 Cum sa se repare masina cu o simpla comanda!Tutorial 100% by me XDCand faceti o cursa si tamponati masina trebe mult sa scriti /fix sau alte comande pentru a repara masina.Acuma GATA. XDFolosind 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 : www.dsrclan.forumfree.it Link to comment Share on other sites More sharing options...
Jo!nt Posted June 5, 2010 Report Share Posted June 5, 2010 Mi se pare mai simpla chestia cu apasatul pe 2 sau pe capslock in fine buna si asta gg 10/10 Link to comment Share on other sites More sharing options...
mihaibr Posted June 5, 2010 Report Share Posted June 5, 2010 da bun da pacat ca, camanda nu e facuta de tine http://forum.sa-mp.ro/index.php/topic,4966.msg32666/boardseen.html :-\ Link to comment Share on other sites More sharing options...
Samy Romafia Posted June 5, 2010 Author Report Share Posted June 5, 2010 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 variantein 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, www.dsrclan.forumfree.it Link to comment Share on other sites More sharing options...
Guest OpenGL Posted June 5, 2010 Report Share Posted June 5, 2010 mersi l-am adaugat la gm meu Link to comment Share on other sites More sharing options...
Recommended Posts