paulie2907 12 Odesláno: 23. Prosinec, 2010 Share Odesláno: 23. Prosinec, 2010 Jak vytvořit menu které opraví auto, letadlo, atd... !!!Včetně jejich doplňků (nárazníky atd). Např pomocí příkazu /repair??? Link to comment Share on other sites More sharing options...
XxM4st3rxX 3 Odesláno: 23. Prosinec, 2010 Share Odesláno: 23. Prosinec, 2010 public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/repair", cmdtext, true, 10) == 0) { new vehicleid = GetPlayerVehicleID(playerid); SetVehicleHealth(vehicleid, 1000.0); return 1; } return 0; } -- čtv 23. pro 2010 23:20:03 -- dufam ze je to bez chyby Link to comment Share on other sites More sharing options...
paulie2907 12 Odesláno: 23. Prosinec, 2010 Author Share Odesláno: 23. Prosinec, 2010 Menší problém! Opraví auto tak že se přestane kouřit z motoru ale vzhled zůstává stejný!! Link to comment Share on other sites More sharing options...
Guest BadSocer Odesláno: 23. Prosinec, 2010 Share Odesláno: 23. Prosinec, 2010 public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/repair", true) == 0) { RepairVehicle(GetPlayerVehicleID(playerid)); return 1; } return 0; } toto mne fungovalo Link to comment Share on other sites More sharing options...
paulie2907 12 Odesláno: 24. Prosinec, 2010 Author Share Odesláno: 24. Prosinec, 2010 Už je to funkční ale jak to udělat aby napsal: /repair "hráč" a oprvilo by to auto jiného hráče? Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 24. Prosinec, 2010 Share Odesláno: 24. Prosinec, 2010 Najdi si jak se pracuje s dcmd a potom jen new id = strval(params); if(!IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid, barva, "hrac neni ve vozidle"); RepairVehicle(GetPlayerVehicleID(id)); Link to comment Share on other sites More sharing options...
Roox 1 Odesláno: 24. Prosinec, 2010 Share Odesláno: 24. Prosinec, 2010 Jestli neumíš dcmd, najdi si tady na něj návod dcmd_repair(playerid, params[]) { new Id = strval(params); if(strlen(params) == 0) return SendClientMessage(playerid, 0xFF0000AA, "Použití: /repair { Hráč }"); if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, 0xFF0000AA, "Tento hráč není na serveru."); if(!IsPlayerInAnyVehicle(Id)) return SendClientMessage(playerid, 0xFF0000AA, "Tento hráč není ve vozidle."); RepairVehicle(GetPlayerVehicleId(Id)); if(Id == playerid) { SendClientMessage(playerid, 0x00FF00AA, "Opravil jste si vozidlo."); } else { new string[128]; format(string, sizeof(string), "Opravil jste vozidlo hráči %s.", PlayerName(Id)); SendClientMessage(playerid, 0x00FF00AA, string); format(string, sizeof(string), "Administrátor %s vám opravil vozidlo.", PlayerName(playerid)); SendClientMessage(Id, 0x00FF00AA, string); } return 1; } Jestli nemáš stock na PlayerName, tak si tam hoď ještě toto: stock PlayerName(playerid) { new n[24]; GetPlayerName(playerid, n, 24); return n; } Link to comment Share on other sites More sharing options...
BELZI 13 Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 Mám problém Keď dám zkompilovať, tak mi dá toto: C:\Documents and Settings\hp\Plocha\repair.pwn(105) : error 017: undefined symbol "RepairVehicle" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Neviete prosím, čo s tým?? Link to comment Share on other sites More sharing options...
Lamborghini 0 Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 Mám problém Keď dám zkompilovať, tak mi dá toto: C:\Documents and Settings\hp\Plocha\repair.pwn(105) : error 017: undefined symbol "RepairVehicle" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Neviete prosím, čo s tým?? Stáhni si nový pawno Link to comment Share on other sites More sharing options...
MinecraftPlayer 0 Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 Mám problém Keď dám zkompilovať, tak mi dá toto: C:\Documents and Settings\hp\Plocha\repair.pwn(105) : error 017: undefined symbol "RepairVehicle" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Neviete prosím, čo s tým?? Stáhni si nový pawno RepairVehicle je na všechny pawna Link to comment Share on other sites More sharing options...
Guest Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 tú funkciu pridali od 0.3a tuším -- úte 29. bře 2011 16:36:21 -- tú funkciu pridali od 0.3a tuším Link to comment Share on other sites More sharing options...
MinecraftPlayer 0 Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 ee stahni si 0.2X a uvidíš že i tam to je Link to comment Share on other sites More sharing options...
Guest Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 mal som pravdu Version 0.3a Up to 500 players per server and up to 2000 vehicles. New mouse driven scoreboard, chat and other UIs. Visible vehicle damage and vehicle repairing. NPC bots that can drive trains, planes and more. Completely server controlled game play. Improved sync including vehicle surfing. Many new scripting features. Many bug and crash fixes - SA-MP 0.3a is the most stable version yet! pridane od verzie 0.3a Link to comment Share on other sites More sharing options...
Lamborghini 0 Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 No vidíš tak co to tu kecáš loloe ? xD Link to comment Share on other sites More sharing options...
BELZI 13 Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 Pls, nedal by si mi nejaky link? Ja som v tom uplna lama a teraz nwm, ze ktore pawno stiahnut Link to comment Share on other sites More sharing options...
paulie2907 12 Odesláno: 29. Březen, 2011 Author Share Odesláno: 29. Březen, 2011 To je starej muj help :D . Prosím LOCK Link to comment Share on other sites More sharing options...
MinecraftPlayer 0 Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 No vidíš tak co to tu kecáš loloe ? xD no vidíš tak co tu spamuješ rakvicka? Link to comment Share on other sites More sharing options...
paulie2907 12 Odesláno: 29. Březen, 2011 Author Share Odesláno: 29. Březen, 2011 Jo a děkuju za pomoc ;) I když byla už dávno Link to comment Share on other sites More sharing options...
BELZI 13 Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 A pls date mi ten link na download??? :zachod: Link to comment Share on other sites More sharing options...
Lamborghini 0 Odesláno: 29. Březen, 2011 Share Odesláno: 29. Březen, 2011 A pls date mi ten link na download??? :zachod: http://www.sa-mp.com/download.php Link to comment Share on other sites More sharing options...
BELZI 13 Odesláno: 2. Duben, 2011 Share Odesláno: 2. Duben, 2011 Ok, ďakujem ti za pomoc. Ide to :rap: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now