stefanel994 Posted December 17, 2010 Report Share Posted December 17, 2010 PTr cei care aveau problema cu wantedul cand primeai respawn se dadea la 0. Te duci in gamemod si cauti liniaif(newstate == PLAYER_STATE_SPAWNED) Si aicio sa ai new Float: lwx, Float:lwy, Float:lwz; GetPlayerPos(playerid, lwx, lwy, lwz); if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8 { SetPlayerSpawn(playerid); } if(PlayerOnMission[playerid] > 0) { GameTextForPlayer(playerid, "~r~Mission failed", 5000, 3); PlayerOnMission[playerid] = 0; PlayerInfo[playerid][pMissionNr] = 0; } WantedPoints[playerid] = 0; WantedLevel[playerid] = 0; if(PlayerInfo[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); } else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); } MedicBill[playerid] = 1; TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0; gPlayerSpawned[playerid] = 1; SafeTime[playerid] = 60; } return 1; } De aici stergi WantedPoints[playerid] = 0; WantedLevel[playerid] = 0; la sfarsit tb sa arate asa new Float: lwx, Float:lwy, Float:lwz; GetPlayerPos(playerid, lwx, lwy, lwz); if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8 { SetPlayerSpawn(playerid); } if(PlayerOnMission[playerid] > 0) { GameTextForPlayer(playerid, "~r~Mission failed", 5000, 3); PlayerOnMission[playerid] = 0; PlayerInfo[playerid][pMissionNr] = 0; } if(PlayerInfo[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); } else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); } MedicBill[playerid] = 1; TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0; gPlayerSpawned[playerid] = 1; SafeTime[playerid] = 60; } return 1; } Quote Link to comment Share on other sites More sharing options...
SaLiErY Posted December 17, 2010 Report Share Posted December 17, 2010 daca mi se permite sa adaug ca sa ramana wantedu si dupa restart la server dupa ce da /q la onplayerconnect aveti linia asta WantedLevel[playerid] = 0; linia trebe pusa sub forma de comenzitariu si va deveni /*WantedLevel[playerid] = 0;*/nam vreut sa fac alt tutorial daca tot era acesta stefanel994 te rog dati edit la post si pune si sa ramana wantedu permanet daca vrei Quote Link to comment Share on other sites More sharing options...
Roach Posted December 17, 2010 Report Share Posted December 17, 2010 Frumos Tutorial(si cu ajutorul lui SaLiErY)GJ! 9,5/10(Daca nu era SaLiErY, nu iesea asa de bine)! Quote Underground-GFX Link to comment Share on other sites More sharing options...
stefanel994 Posted December 18, 2010 Author Report Share Posted December 18, 2010 Thx o sa vin si cu alte tutoriale mai importante. Quote Link to comment Share on other sites More sharing options...
SaLiErY Posted December 18, 2010 Report Share Posted December 18, 2010 iar eu mai adaug la stafan Quote Link to comment Share on other sites More sharing options...
heker Posted December 18, 2010 Report Share Posted December 18, 2010 Insemna k al tau este diferit de ak meu. LOLhttp://www.sa-mp.ro/forum/index.php/topic,7548.0.html Quote Link to comment Share on other sites More sharing options...
Roach Posted December 18, 2010 Report Share Posted December 18, 2010 Insemna k al tau este diferit de ak meu. LOLhttp://www.sa-mp.ro/forum/index.php/topic,7548.0.html1. Vezi sa mai inveti sa scri(adica ai facut niste greseli de batitura)2. Pei al tau nu merge, si al lui merge, asta este Diferenta! Quote Underground-GFX Link to comment Share on other sites More sharing options...
SaLiErY Posted December 19, 2010 Report Share Posted December 19, 2010 ma heker la tine in tutorial nu e fuctional si nu are nici o legatura cu /q la tine save wanted Quote Link to comment Share on other sites More sharing options...
HsY Posted September 15, 2011 Report Share Posted September 15, 2011 gj pentru tutorial dar este un bug ...daca eu iau wanted cu id 1 si nu mai intru ... si intra alt player cu id 1 are wanted fara sa faca nimic ...vre-o rezolvare? Quote Link to comment Share on other sites More sharing options...
Ryder_RO Posted September 16, 2011 Report Share Posted September 16, 2011 slabut , dar merge 4/5 Quote Link to comment Share on other sites More sharing options...
LosTSouL Posted September 16, 2011 Report Share Posted September 16, 2011 Reply #7 on: December 19, 2010, 03:45:26 PM »OMG , ati " inviat " un topic de pe vremea lui Mos Craciun nene !_______________________________________________Bunicel tutorial .. ( am zis sa nu fac Off ) Quote Link to comment Share on other sites More sharing options...
HsY Posted September 16, 2011 Report Share Posted September 16, 2011 OMG , ati " inviat " un topic de pe vremea lui Mos Craciun nene !_______________________________________________Bunicel tutorial .. ( am zis sa nu fac Off ) Asa si care-i problema daca am "reinviat" un topic de nush cand? am facut OFF topic sau reply aiurea? ca spui ca am postat doar ca sa "reinviu" topicu ?mai bine nu ai mai posta asa aiurea ...O rezolvare la problema ? trebuie schimbat din playerid in playername sau ceva de genu ... maine daca am timp o sa incerc sa vad ... daca reusesc dau un edit si trec si aici Quote Link to comment Share on other sites More sharing options...
IstuntmanI Posted September 16, 2011 Report Share Posted September 16, 2011 LosTSouL, HsY a postat in topic aducand o informatie, informandu-ne ca ar fi bug pe urma.Singura metoda este scrisul in fisiere cand se deconecteaza, iar cand se conecteaza sa i-l dea din fisier. Quote Link to comment Share on other sites More sharing options...
heker Posted September 16, 2011 Report Share Posted September 16, 2011 ma heker la tine in tutorial nu e fuctional si nu are nici o legatura cu /q la tine save wanteddestept si desteptiilot pentru o salvare mai buna a wantedului salvatil intr-o variabila sau cum este ea WantedLevel simplunew wakaname[25]; GetPlayerName(playerid,wakaname,25); new str[128]; format(str,128,"UPDATE `tabelul tau` SET `WantedLevel`='%d' WHERE `name`='%s'",WantedLevel(playerid),wakaname); mysql_query(str);si gata o.O Quote Link to comment Share on other sites More sharing options...
RazvanS Posted September 22, 2011 Report Share Posted September 22, 2011 Multumesc foarte mult , este chiar folositor , mai ales ca abea akuma invat sa scriptez Quote Link to comment Share on other sites More sharing options...
Zapakitu Posted September 25, 2011 Report Share Posted September 25, 2011 Bun tutorial .. am vazut unul leit pe sa-mp.com... 2/5 hai 3/5 pentru efortul de a da copy paste ) Quote Link to comment Share on other sites More sharing options...
vladutc Posted September 25, 2011 Report Share Posted September 25, 2011 Multumesc , mi-a fost de mare folos dar cand dau /q imi dispare wanted-ul , doar la respawn si cand ma omor ramane . Quote Link to comment Share on other sites More sharing options...
Zapakitu Posted September 26, 2011 Report Share Posted September 26, 2011 Multumesc , mi-a fost de mare folos dar cand dau /q imi dispare wanted-ul , doar la respawn si cand ma omor ramane .Sigur ai ales linia if(newstate == PLAYER_STATE_SPAWNED) ? Ca daca nu o alegi asa iti face... Quote Link to comment Share on other sites More sharing options...
LuciaN Posted September 26, 2011 Report Share Posted September 26, 2011 lasatil pe saliery ca daca mai vorbiti cu el va fura si voua modurile ))Frumos tutorial Quote [img width=222 height=100]http://www.speedtest.net/result/734520190.pn Link to comment Share on other sites More sharing options...
Ch1NeZu Posted September 26, 2011 Report Share Posted September 26, 2011 lasatil pe saliery ca daca mai vorbiti cu el va fura si voua modurile ))Frumos tutorial =)))))))) asta a fost chiar tare =)))))))))3/5 copy paste :) Quote Samp.OnlyPro.ro - RolePlay - Join Us ! Link to comment Share on other sites More sharing options...
Jack Posted September 27, 2011 Report Share Posted September 27, 2011 ;)Bun tutorial Quote Link to comment Share on other sites More sharing options...
heker Posted September 28, 2011 Report Share Posted September 28, 2011 Mah salvati WantedLevel cum se salveaza licentele si alea :P Quote Link to comment Share on other sites More sharing options...
Daniel_Dani Posted February 12, 2012 Report Share Posted February 12, 2012 Pana la urma cum se face ca sa mearga bine..? Adica sa ramana wantedu la playerul respectiv nu la IP? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.