Gawitkkk Posted November 26, 2015 Report Share Posted November 26, 2015 Salut ! Am făcut un sistem de sechestrare a maşinilor, membrii TTC pot sechestra maşinile persoane. Totul este ok, însă doar maşina mea personala o pot sechestra, dacă am maşina altui player nu se sechestrează atunci când întru in checkpoint. Aici este OnDialogResponse-ul: if(response) { new idd = 2, towedcar; towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid)); CarInfo[idd][cSequester] = 1; format(CarInfo[idd][cSequesterName],256,GetName(playerid)); format(CarInfo[idd][cSequesterReason], 256, inputtext); CarInfo[idd][cSequesterPrice] = 5; CarInfo[idd][cSequesterTime] = 12; vUpdate(idd, cSequesterx); vUpdate(idd, cSequesterNamex); vUpdate(idd, cSequesterReasonx); vUpdate(idd, cSequesterPricex); vUpdate(idd, cSequesterTimex); SCM(playerid, COLOR_WHITE, "You sequester with successfull that personal vehicle !"); SetVehicleToRespawn(towedcar); DisablePlayerCheckpoint(playerid); } Aş vrea să ştiu cum pot face să se poată sechestra şi maşinile persoane ale altor playeri. Link to comment Share on other sites More sharing options...
0 Gawitkkk Posted December 7, 2015 Author Report Share Posted December 7, 2015 UP !! Link to comment Share on other sites More sharing options...
0 WiDuAlK Posted December 7, 2015 Report Share Posted December 7, 2015 new idd = 2, De ce definesti asa? foloseste loop-ul. Trebuie sa ai pe undeva MAX_VEHICLE_FOR_PLAYER sau ceva de genu si foloseste for(new i = 1; i < MAX_VEHICLE_FOR_PLAYER; i++) sau daca nu merge asa, arata-mi cum faci load la masinile personale. @WiDuAlK Tutorial`s: PAWN pentru SA:MP in Notepad++Tutorial Register-Login MYSQL R39 Tutorial etape de register Cum sa creezi un PayDay (2 METODE)Cum sa creezi o factiune de la 0 PART 1 Cum sa creezi o factiune de la 0 PART 2 Cum sa creezi o factiune de la 0 partea a 3-a (ULTIMA)Functii folositoare din NEW.PWN Tutorial Engine Vehicle Optimizare simplitate si stil Foreach inlocuieste loop-ul SSCANF si ZCMD Cum sa creezi o poarta miscatoare Tutorial cum sa creezi un radio pe server si cum sa iti creezi melodi pentru ascultat pe server Cum sa tii un server din PC folosind HAMACHI Documentatie* Despre hack-uri Servicii: Servicii Scripting & Mapping Produse: Farmer Job Realistic Drugs Dealer System [SA-MP] UNIQUE Link to comment Share on other sites More sharing options...
0 NoNamed Posted December 7, 2015 Report Share Posted December 7, 2015 Model nerespectat . Topic Closed ! Link to comment Share on other sites More sharing options...
Question
Gawitkkk
Salut ! Am făcut un sistem de sechestrare a maşinilor, membrii TTC pot sechestra maşinile persoane.
Totul este ok, însă doar maşina mea personala o pot sechestra, dacă am maşina altui player nu se sechestrează atunci când întru in checkpoint.
Aici este OnDialogResponse-ul:
Aş vrea să ştiu cum pot face să se poată sechestra şi maşinile persoane ale altor playeri.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts