AGaaA Posted March 4, 2015 Report Share Posted March 4, 2015 Salut am si eu nevoie de o comanda / filtrescript cu seatbelt / centura... in romana si altele..Nu prea am gasit... Link to comment Share on other sites More sharing options...
0 WiDuAlK Posted March 5, 2015 Report Share Posted March 5, 2015 .... am gasit-o intr-un GM mai vechi aceasta comanda new Seatbelt[MAX_PLAYERS]; if(strcmp(cmd, "/centura", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; new newcar = GetPlayerVehicleID(playerid); if(!strlen(result) && IsPlayerInAnyVehicle(playerid) == 0 || IsPlayerInAnyVehicle(playerid) && IsABMX(newcar) || IsPlayerInAnyVehicle(playerid) && IsAScuterCar(newcar) || IsPlayerInAnyVehicle(playerid) && IsAMotor(newcar)) { //line 124 SendClientMessage(playerid, COLOR_GRAD2, "Trebuie sa fi intr-o masina pentru ati pune centura."); return 1; } if(IsPlayerInAnyVehicle(playerid) == 1 && Seatbelt[playerid] == 0) { Seatbelt[playerid] = 1; //SetPlayerAttachedObject(playerid,2,GetWeaponModel(weaponid[4]),7, 0.000000, -0.100000, -0.080000, -95.000000, -10.000000, 0.000000, 1.000000, 1.000000, 1.000000); SetPlayerAttachedObject( playerid, 2, 18634, 7,0.000000, 0.100000, 0.350000, -35.224993, 45.215000, 1.500000, 5.000000, 1.500000, 1.500000); //SetPVarInt(playerid, "ova",CreateObject(1044,0,0,0,0,0,0)); 099879 //AttachObjectToVehicle(GetPVarInt(playerid, "ova"), GetPlayerVehicleID(playerid),2, 18634, 7,0.100000, 0.200000, 0.300000, -65.224993, 45.215000, 1.500000, 5.000000, 1.500000, 1.500000); //Object Model: 18634 | format(string, sizeof(string), "* %s si-a pus centura.", sendername); } else if(IsPlayerInAnyVehicle(playerid) == 1 && Seatbelt[playerid] == 1) { Seatbelt[playerid] = 0; for(new i;i<5;i++) RemovePlayerAttachedObject(playerid,i); //DestroyObject(GetPVarInt(playerid, "ova")); format(string, sizeof(string), "* %s si-a dat jos centura.", sendername); } ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); printf("%s", string); } return 1; } nu cred ca e nevoie sa iti explic fiecare functie in parte, daca chiar e nevoie iti explic @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 AGaaA Posted March 5, 2015 Author Report Share Posted March 5, 2015 Nu mersi,de aici ma descurc. Link to comment Share on other sites More sharing options...
0 Mafia. Posted March 7, 2015 Report Share Posted March 7, 2015 Problema Rezolvata TOPIC CLOSED! Link to comment Share on other sites More sharing options...
Question
AGaaA
Salut am si eu nevoie de o comanda / filtrescript cu seatbelt / centura... in romana si altele..Nu prea am gasit...
Link to comment
Share on other sites
3 answers to this question
Recommended Posts