ShowBell Posted August 2, 2011 Posted August 2, 2011 Salut, deci am un gm pe care am pus car ownership cu /v din alt gamemod dar am o problema cand ma urc in masina nu imi apare sa dau /v buy sau daca e cumparata nu imi apare a cui este...Ma poate ajuta cineva?
Ch1NeZu Posted August 2, 2011 Posted August 2, 2011 Pe gm de unde ai copiat sistem-ul apare? daca da inseamna ca nai copiat tutul cum trb normal ar trebuii sa gasesti codurile la OnPlayerEnterVehicle vezi pe acolo :) Samp.OnlyPro.ro - RolePlay - Join Us !
ShowBell Posted August 2, 2011 Author Posted August 2, 2011 tot nu merge... si pe gm-ul celalalt de pe care copiez merge perfect.Deci:Aici e OnPlayerEnterVehicle de unde am copiatpublic OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4) { if (IsACopCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {} else { //WantedPoints[playerid]+=2; //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle"); new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } if (IsNgCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {} else { //WantedPoints[playerid]+=2; //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle"); new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } if (IsAnAmbulance(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { } else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Stealing An Ambulance"); } } if (IsATank(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==3) {} else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Stealing A Tank"); SendClientMessage(playerid, COLOR_GREY,"You don't know how to drive it yet."); } } if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1) { if(PlayerInfo[playerid][pAdmin] >= 5 && AdminDuty[playerid] == 1) { } else { new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } if(IsAnOwnableBike(vehicleid) && BikeInfo[vehicleid][bkLock] == 1 && BikeInfo[vehicleid][bkOwned] == 1) { if(PlayerInfo[playerid][pAdmin] >= 5 && AdminDuty[playerid] == 1) { } else { new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } } return 1; } Iar aici e unde lam copiat: public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4) { if (IsACopCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pLeader]==17||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pMember]==17) {} else { new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1) { if(PlayerInfo[playerid][pAdmin] >= 5 && AdminDuty[playerid] == 1) { } else { new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } } } return 1; }
Ch1NeZu Posted August 2, 2011 Posted August 2, 2011 Ma trebuie sa copiezi doar ce e legat de sistem nu si ce este in + ca asa o sa iti strici gm-ul,daca nici sa copiezi nu esti in stare...nush prea mute legate de sistem-ul asta ca nu ma interesat eu ti-am zis unde sa cauti acum tine de tine ce faci in continuare... Samp.OnlyPro.ro - RolePlay - Join Us !
ShowBell Posted August 2, 2011 Author Posted August 2, 2011 poi se vede clar ca doar sistemul lam copiat :| hai te rog ajutama ca nu reusesc
Ch1NeZu Posted August 2, 2011 Posted August 2, 2011 Ma... eu cand eram incepator si copiam si eu din alte gm-uri,dupa ce il copiam,mai verificam odata,incearca sa copiezi de acum in colo cu notepad++ ca acolo cand dai Find ai si o optiune sa iti caute toate linile cu acel cuvant incearca asa....poate iti este mai usor Samp.OnlyPro.ro - RolePlay - Join Us !
ShowBell Posted August 2, 2011 Author Posted August 2, 2011 Mda mersi am rezolvat Ch1nezule lasate de samp scripting si dute dracu la mario
WanTeD Posted August 2, 2011 Posted August 2, 2011 Vrei warn?Vorbeste civilizat nu suntem la tine pe gang.El doar tia zis un sfat.Daca tu nu stii sa copiezi pleaca tu unde ai zis.
IstuntmanI Posted August 2, 2011 Posted August 2, 2011 Mda mersi am rezolvat Ch1nezule lasate de samp scripting si dute dracu la marioWarn 10%, limbaj + insulte.Posteaza in Probleme Godfather.
Question
ShowBell
Salut, deci am un gm pe care am pus car ownership cu /v din alt gamemod dar am o problema cand ma urc in masina nu imi apare sa dau /v buy sau daca e cumparata nu imi apare a cui este...
Ma poate ajuta cineva?
8 answers to this question
Recommended Posts