AndreiB
Membru-
Posts
108 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Everything posted by AndreiB
-
Ajutor va rog dau un host de sa-mp il platesc eu in fiecare luna
AndreiB replied to AndreiB's question in Ajutor Scripting
nu are problema la dealesrship sa se buguieasca? -
Ajutor va rog dau un host de sa-mp il platesc eu in fiecare luna
AndreiB replied to AndreiB's question in Ajutor Scripting
@MiritaXD uite functia e pPluscarkey2 stock RespawnPVeh(vid,playerid) { new masinalui,carid; if(vid == personalcar[0][playerid]) { DestryVIPNameVehicle(personalcar[0][playerid], playerid); vehEngine[personalcar[0][playerid]] = 0; DestroyVehicle(personalcar[0][playerid]); OwnedVeh(personalcar[0][playerid]) = 0; carid = PlayerInfo[playerid][pPcarkey]; Gas[personalcar[0][playerid]] = CarInfo[carid][cGas]; masinalui = 1; } else if(vid == personalcar[1][playerid]) { DestryVIPNameVehicle(personalcar[1][playerid], playerid); vehEngine[personalcar[1][playerid]] = 0; DestroyVehicle(personalcar[1][playerid]); OwnedVeh(personalcar[1][playerid]) = 0; carid = PlayerInfo[playerid][pmotokey]; Gas[personalcar[1][playerid]] = CarInfo[carid][cGas]; masinalui = 2; } else if(vid == personalcar[2][playerid]) { DestryVIPNameVehicle(personalcar[2][playerid], playerid); vehEngine[personalcar[2][playerid]] = 0; DestroyVehicle(personalcar[2][playerid]); OwnedVeh(personalcar[2][playerid]) = 0; carid = PlayerInfo[playerid][pprcarkey]; Gas[personalcar[2][playerid]] = CarInfo[carid][cGas]; masinalui = 3; } else if(vid == personalcar[3][playerid]) { DestryVIPNameVehicle(personalcar[3][playerid], playerid); vehEngine[personalcar[3][playerid]] = 0; DestroyVehicle(personalcar[3][playerid]); OwnedVeh(personalcar[3][playerid]) = 0; carid = PlayerInfo[playerid][pprcarkey2]; Gas[personalcar[3][playerid]] = CarInfo[carid][cGas]; masinalui = 4; } else if(vid == personalcar[4][playerid]) { DestryVIPNameVehicle(personalcar[4][playerid], playerid); vehEngine[personalcar[4][playerid]] = 0; DestroyVehicle(personalcar[4][playerid]); OwnedVeh(personalcar[4][playerid]) = 0; carid = PlayerInfo[playerid][pPPluscarkey]; Gas[personalcar[4][playerid]] = CarInfo[carid][cGas]; masinalui = 5; } else if(vid == personalcar[5][playerid]) { DestryVIPNameVehicle(personalcar[5][playerid], playerid); vehEngine[personalcar[5][playerid]] = 0; DestroyVehicle(personalcar[5][playerid]); OwnedVeh(personalcar[5][playerid]) = 0; carid = PlayerInfo[playerid][pPPluscarkey2]; Gas[personalcar[5][playerid]] = CarInfo[carid][cGas]; masinalui = 6; } new car = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],500000); SetVehicleNumberPlate(car, CarInfo[carid][cLicense]); SetVehicleHealth(car, CarInfo[carid][cHP]); UpdateVehicleDamageStatus(car, CarInfo[carid][cDamage1], CarInfo[carid][cDamage2], CarInfo[carid][cDamage3], CarInfo[carid][cDamage4]); new engine,lights,alarm,doors,bonnet,boot,objective; if(CarInfo[carid][cLock] == 1) { GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(car,engine,lights,alarm,1,bonnet,boot,objective); } if(CarInfo[carid][cLock] == 0) { GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(car,engine,lights,alarm,0,bonnet,boot,objective); } OwnedVeh(car) = carid; if(masinalui == 1) personalcar[0][playerid] = car; if(masinalui == 2) personalcar[1][playerid] = car; if(masinalui == 3) personalcar[2][playerid] = car; if(masinalui == 4) personalcar[3][playerid] = car; if(masinalui == 5) personalcar[4][playerid] = car; if(masinalui == 6) personalcar[5][playerid] = car; SwitchKey[playerid] = 1; ModVehicle(car); return 1; } -
Ajutor va rog dau un host de sa-mp il platesc eu in fiecare luna
AndreiB replied to AndreiB's question in Ajutor Scripting
nu sti un gamemode de inceput gen bigzone fara bug la systemul de vehicule atunci ca nu vreau gamemodeuri gen edison #5 sua burned etc;si nici saints ca nu stiu sa ii schimb versiunea de mysql -
ma ajtui te rog
-
Ajutor va rog dau un host de sa-mp il platesc eu in fiecare luna
AndreiB replied to AndreiB's question in Ajutor Scripting
ma poti ajuta pe la ce este -
Ajutor va rog dau un host de sa-mp il platesc eu in fiecare luna
AndreiB replied to AndreiB's question in Ajutor Scripting
nu,nici nu te cunosc -
-
Ajutor va rog dau un host de sa-mp il platesc eu in fiecare luna
AndreiB replied to AndreiB's question in Ajutor Scripting
CMD:buycar(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_WHITE,"{FFB870}Please get out of the car."); if(IsPlayerInRangeOfPoint(playerid, 7.0, 328.3534,-1513.1687,36.0391)) { if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be level 3 to buy a vehicle."); BuyCar[playerid] = -1; ShowPlayerDialog(playerid,DIALOG_CARBUY, DIALOG_STYLE_LIST, "Buy a car", "Cheap cars\nRegular cars\nExpensive cars\nPremium cars", "Select", "Close"); } else return SCM(playerid,COLOR_WHITE,"{FFB870}You are not the place where you can buy a car."); return 1; } // type 1 - car | 2 - moto/bike | 3 - heli | 4 - premium cars. public InsertCar(playerid,type,stockid) { new string[128],sendername[25],namecar[100]; new idd = Findcar(); new model = Stock[stockid][vModel]; new value = Stock[stockid][vPrice]; strmid(namecar,Stock[stockid][vName], 0, 100, 255); GetPlayerName(playerid,sendername,sizeof(sendername)); BuyCar[playerid] = -1; if(idd != 0) { if(GetPlayerCash(playerid) < value) return SCM(playerid,COLOR_WHITE,"You do not have enough money."); if(type == 1) { if(PlayerInfo[playerid][pPremiumAccount] == 0 && PlayerInfo[playerid][pPlusSlot1] == 0 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars."); } } if(PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPremiumAccount] == 0 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { PlayerInfo[playerid][pPPluscarkey] = idd; Update(playerid,pPPluscarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars + 1 plus car."); } } if(PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 1 && PlayerInfo[playerid][pPremiumAccount] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { PlayerInfo[playerid][pPPluscarkey] = idd; Update(playerid,pPPluscarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey2] == 0) { PlayerInfo[playerid][pPPluscarkey2] = idd; Update(playerid,pPPluscarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars + 2 plus cars."); } } if(PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 0 && PlayerInfo[playerid][pPremiumAccount] > 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey] == 0) { PlayerInfo[playerid][pprcarkey] = idd; Update(playerid,pprcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey2] == 0) { PlayerInfo[playerid][pprcarkey2] = idd; Update(playerid,pprcarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { PlayerInfo[playerid][pPPluscarkey] = idd; Update(playerid,pPPluscarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars + 2 premium cars + 1 plus car."); } } if(PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 1 && PlayerInfo[playerid][pPremiumAccount] > 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey] == 0) { PlayerInfo[playerid][pprcarkey] = idd; Update(playerid,pprcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey2] == 0) { PlayerInfo[playerid][pprcarkey2] = idd; Update(playerid,pprcarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { PlayerInfo[playerid][pPPluscarkey] = idd; Update(playerid,pPPluscarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey2] == 0) { PlayerInfo[playerid][pPPluscarkey2] = idd; Update(playerid,pPPluscarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars + 2 premium cars + 2 plus cars."); } } if(PlayerInfo[playerid][pPremiumAccount] > 0 && PlayerInfo[playerid][pPlusSlot1] == 0 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey] == 0) { PlayerInfo[playerid][pprcarkey] = idd; Update(playerid,pprcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey2] == 0) { PlayerInfo[playerid][pprcarkey2] = idd; Update(playerid,pprcarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 premium cars + 2 cars."); } } } Stock[stockid][vStock]--; mysql_format(SQL, string, sizeof(string), "UPDATE stock SET Stock='%d' WHERE ID='%d'", Stock[stockid][vStock],stockid); mysql_tquery(SQL,string,"",""); GivePlayerCash(playerid,-value); Update(playerid,pCashx); CarInfo[idd][cSell] = 1; CarInfo[idd][cID] = idd; CarInfo[idd][cModel] = model; CarInfo[idd][cColorOne] = 1; CarInfo[idd][cColorTwo] = 1; strmid(CarInfo[idd][cOwner], PlayerInfo[playerid][pNormalName], 0, 25, 255); strmid(CarInfo[idd][cDescription],namecar, 0, strlen(namecar), 255); CarInfo[idd][cValue] = value; strmid(CarInfo[idd][cLicense], "NewCar", 0, 6, 255); CarInfo[idd][cOwned] = 1; CarInfo[idd][cLock] = 0; CarInfo[idd][cTimed] = 0; CarInfo[idd][cInscarprice] = 100; CarInfo[idd][cInsurancecar] = 4; CarInfo[idd][cKM] = 0.0; CarInfo[idd][cHP] = 1000.0; CarInfo[idd][cDamage1] = 0; CarInfo[idd][cDamage2] = 0; CarInfo[idd][cDamage3] = 0; CarInfo[idd][cDamage4] = 0; CarInfo[idd][cGas] = 100; CarInfo[idd][cPaintJ] = 6; CarInfo[idd][mod1] = 0; CarInfo[idd][mod2] = 0; CarInfo[idd][mod3] = 0; CarInfo[idd][mod4] = 0; CarInfo[idd][mod5] = 0; CarInfo[idd][mod6] = 0; CarInfo[idd][mod7] = 0; CarInfo[idd][mod8] = 0; CarInfo[idd][mod9] = 0; CarInfo[idd][mod10] = 0; CarInfo[idd][mod11] = 0; CarInfo[idd][mod12] = 0; CarInfo[idd][mod13] = 0; CarInfo[idd][mod14] = 0; CarInfo[idd][mod15] = 0; CarInfo[idd][mod16] = 0; CarInfo[idd][mod17] = 0; CarInfo[idd][cDays] = 0; vUpdate(idd, cModsx); vUpdate(idd, cPaintJx); vUpdate(idd, cSellx); vUpdate(idd, cLocationxx); vUpdate(idd, cLocationyx); vUpdate(idd, cLocationzx); vUpdate(idd, cAnglex); vUpdate(idd, cModelx); vUpdate(idd, cColorOnex); vUpdate(idd, cColorTwox); vUpdate(idd, cOwnerx); vUpdate(idd, cValuex); vUpdate(idd, cLicensex); vUpdate(idd, cDescriptionx); vUpdate(idd, cLockx); vUpdate(idd, cTimedx); vUpdate(idd, cInscarpricex); vUpdate(idd, cInsurancecarx); vUpdate(idd, cKMx); vUpdate(idd, cOwnedx); vUpdate(idd, cDaysx); vUpdate(idd, cHPx); vUpdate(idd, cDamage1x); vUpdate(idd, cDamage2x); vUpdate(idd, cDamage3x); vUpdate(idd, cDamage4x); vUpdate(idd, cGasx); new car = CreateVehicle(CarInfo[idd][cModel],CarInfo[idd][cLocationx],CarInfo[idd][cLocationy],CarInfo[idd][cLocationz],CarInfo[idd][cAngle],1,1,500000); SetVehicleNumberPlate(car,CarInfo[idd][cLicense]); new disp[184],stringsss[256],numele[30]; format(disp,sizeof(disp),"You bought %s.Please take your car and park it elsewhere.",CarInfo[idd][cDescription]); SCM(playerid,COLOR_GREEN,disp); GetPlayerName(playerid, numele, sizeof(numele)); format(stringsss,sizeof(stringsss),"%s [user:%d] bought a %s [car:%d] for $%s.",numele,PlayerInfo[playerid][pSQLID],CarInfo[idd][cDescription],CarInfo[idd][cID],FormatNumber(value)); ABroadCast(COLOR_YELLOW,stringsss,1); new var100[256],y,m,d,h,mi,s,string2[256],string3[256]; getdate(y,m,d); gettime(h,mi,s); format(string2,sizeof(string2),"[%02d-%02d-%d %02d:%02d:%02d] %s",d,m,y,h,mi,s,stringsss); mysql_real_escape_string(string2, string3); mysql_format(SQL, var100, sizeof(var100), "INSERT INTO playerlogs (`playerid`,`giverid`,`action`,`time`) VALUES ('%d','0','%s','%02d-%02d-%d %02d:%02d:%02d')", PlayerInfo[playerid][pSQLID],string3,d,m,y,h,mi,s); mysql_tquery(SQL,var100,"",""); OwnedVeh(car) = idd; if(idd == PlayerInfo[playerid][pPcarkey]) { personalcar[0][playerid] = car; } if(idd == PlayerInfo[playerid][pmotokey]) { personalcar[1][playerid] = car; } if(idd == PlayerInfo[playerid][pprcarkey]) { personalcar[2][playerid] = car; } if(idd == PlayerInfo[playerid][pprcarkey2]) { personalcar[3][playerid] = car; } if(idd == PlayerInfo[playerid][pPPluscarkey]) { personalcar[4][playerid] = car; } if(idd == PlayerInfo[playerid][pPPluscarkey2]) { personalcar[5][playerid] = car; } masini++; SwitchKey[playerid] = 1; } if(idd == 0) { if(GetPlayerCash(playerid) < value) return SCM(playerid,COLOR_WHITE,"You do not have enough money."); new Cache: sar = mysql_query(SQL,"SELECT * FROM `cars`"); idd = cache_num_rows()+1; cache_delete(sar); if(type == 1) { if(PlayerInfo[playerid][pPremiumAccount] == 0 && PlayerInfo[playerid][pPlusSlot1] == 0 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars."); } } if(PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPremiumAccount] == 0 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { PlayerInfo[playerid][pPPluscarkey] = idd; Update(playerid,pPPluscarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars + 1 plus car."); } } if(PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 1 && PlayerInfo[playerid][pPremiumAccount] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { PlayerInfo[playerid][pPPluscarkey] = idd; Update(playerid,pPPluscarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey2] == 0) { PlayerInfo[playerid][pPPluscarkey2] = idd; Update(playerid,pPPluscarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars + 2 plus cars."); } } if(PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 0 && PlayerInfo[playerid][pPremiumAccount] > 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey] == 0) { PlayerInfo[playerid][pprcarkey] = idd; Update(playerid,pprcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey2] == 0) { PlayerInfo[playerid][pprcarkey2] = idd; Update(playerid,pprcarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { PlayerInfo[playerid][pPPluscarkey] = idd; Update(playerid,pPPluscarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars + 2 premium cars + 1 plus car."); } } if(PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 1 && PlayerInfo[playerid][pPremiumAccount] > 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey] == 0) { PlayerInfo[playerid][pprcarkey] = idd; Update(playerid,pprcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey2] == 0) { PlayerInfo[playerid][pprcarkey2] = idd; Update(playerid,pprcarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { PlayerInfo[playerid][pPPluscarkey] = idd; Update(playerid,pPPluscarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pPPluscarkey2] == 0) { PlayerInfo[playerid][pPPluscarkey2] = idd; Update(playerid,pPPluscarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 cars + 2 premium cars + 2 plus cars."); } } if(PlayerInfo[playerid][pPremiumAccount] > 0 && PlayerInfo[playerid][pPlusSlot1] == 0 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { PlayerInfo[playerid][pPcarkey] = idd; Update(playerid,pPcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else { if(PlayerInfo[playerid][pmotokey] == 0) { PlayerInfo[playerid][pmotokey] = idd; Update(playerid,pmotokeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey] == 0) { PlayerInfo[playerid][pprcarkey] = idd; Update(playerid,pprcarkeyx); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else if(PlayerInfo[playerid][pprcarkey2] == 0) { PlayerInfo[playerid][pprcarkey2] = idd; Update(playerid,pprcarkey2x); CarInfo[idd][cLocationx] = 284.5032; CarInfo[idd][cLocationy] = -1526.4036; CarInfo[idd][cLocationz] = 24.3208; CarInfo[idd][cAngle] = 235.1191; } else return SCM(playerid,COLOR_WHITE,"Already own 2 premium cars + 2 cars."); } } } Stock[stockid][vStock]--; mysql_format(SQL, string, sizeof(string), "UPDATE stock SET Stock='%d' WHERE ID='%d'", Stock[stockid][vStock],stockid); mysql_tquery(SQL,string,"",""); GivePlayerCash(playerid,-value); Update(playerid,pCashx); CarInfo[idd][cID] = idd; CarInfo[idd][cModel] = model; CarInfo[idd][cColorOne] = 1; CarInfo[idd][cColorTwo] = 1; strmid(CarInfo[idd][cOwner], PlayerInfo[playerid][pNormalName], 0, 25, 255); strmid(CarInfo[idd][cDescription],namecar, 0, strlen(namecar), 255); CarInfo[idd][cValue] = value; strmid(CarInfo[idd][cLicense], "NewCar", 0, 6, 255); CarInfo[idd][cOwned] = 1; CarInfo[idd][cLock] = 0; CarInfo[idd][cTimed] = 0; CarInfo[idd][cInscarprice] = 100; CarInfo[idd][cInsurancecar] = 4; CarInfo[idd][cKM] = 0.0; CarInfo[idd][cHP] = 1000.0; CarInfo[idd][cDamage1] = 0; CarInfo[idd][cDamage2] = 0; CarInfo[idd][cDamage3] = 0; CarInfo[idd][cDamage4] = 0; CarInfo[idd][cGas] = 100; CarInfo[idd][cSell] = 1; CarInfo[idd][cPaintJ] = 6; CarInfo[idd][mod1] = 0; CarInfo[idd][mod2] = 0; CarInfo[idd][mod3] = 0; CarInfo[idd][mod4] = 0; CarInfo[idd][mod5] = 0; CarInfo[idd][mod6] = 0; CarInfo[idd][mod7] = 0; CarInfo[idd][mod8] = 0; CarInfo[idd][mod9] = 0; CarInfo[idd][mod10] = 0; CarInfo[idd][mod11] = 0; CarInfo[idd][mod12] = 0; CarInfo[idd][mod13] = 0; CarInfo[idd][mod14] = 0; CarInfo[idd][mod15] = 0; CarInfo[idd][mod16] = 0; CarInfo[idd][mod17] = 0; CarInfo[idd][cDays] = 0; mysql_format(SQL, string, sizeof(string),"INSERT INTO cars (ID, Model) VALUES (%d, %d)", idd, CarInfo[idd][cModel]); mysql_tquery(SQL,string,"",""); vUpdate(idd, cModsx); vUpdate(idd, cPaintJx); vUpdate(idd, cSellx); vUpdate(idd, cLocationxx); vUpdate(idd, cLocationyx); vUpdate(idd, cLocationzx); vUpdate(idd, cAnglex); vUpdate(idd, cColorOnex); vUpdate(idd, cColorTwox); vUpdate(idd, cOwnerx); vUpdate(idd, cValuex); vUpdate(idd, cLicensex); vUpdate(idd, cDescriptionx); vUpdate(idd, cLockx); vUpdate(idd, cTimedx); vUpdate(idd, cInscarpricex); vUpdate(idd, cInsurancecarx); vUpdate(idd, cKMx); vUpdate(idd, cOwnedx); vUpdate(idd, cDaysx); vUpdate(idd, cHPx); vUpdate(idd, cDamage1x); vUpdate(idd, cDamage2x); vUpdate(idd, cDamage3x); vUpdate(idd, cDamage4x); vUpdate(idd, cGasx); new car = CreateVehicle(CarInfo[idd][cModel],CarInfo[idd][cLocationx],CarInfo[idd][cLocationy],CarInfo[idd][cLocationz],CarInfo[idd][cAngle],1,1,500000); SetVehicleNumberPlate(car,CarInfo[idd][cLicense]); new disp[184],stringsss[256],numele[30]; format(disp,sizeof(disp),"You bought %s.Please take your car and park it elsewhere.",CarInfo[idd][cDescription]); SCM(playerid,COLOR_GREEN,disp); GetPlayerName(playerid, numele, sizeof(numele)); format(stringsss,sizeof(stringsss),"%s [user:%d] bought a %s [car:%d] for $%s.",numele,PlayerInfo[playerid][pSQLID],CarInfo[idd][cDescription],CarInfo[idd][cID],FormatNumber(value)); ABroadCast(COLOR_YELLOW,stringsss,1); new var100[256],y,m,d,h,mi,s,string2[256],string3[256]; getdate(y,m,d); gettime(h,mi,s); format(string2,sizeof(string2),"[%02d-%02d-%d %02d:%02d:%02d] %s",d,m,y,h,mi,s,stringsss); mysql_real_escape_string(string2, string3); mysql_format(SQL, var100, sizeof(var100), "INSERT INTO playerlogs (`playerid`,`giverid`,`action`,`time`) VALUES ('%d','0','%s','%02d-%02d-%d %02d:%02d:%02d')", PlayerInfo[playerid][pSQLID],string3,d,m,y,h,mi,s); mysql_tquery(SQL,var100,"",""); OwnedVeh(car) = idd; if(idd == PlayerInfo[playerid][pPcarkey]) { personalcar[0][playerid] = car; } if(idd == PlayerInfo[playerid][pmotokey]) { personalcar[1][playerid] = car; } if(idd == PlayerInfo[playerid][pprcarkey]) { personalcar[2][playerid] = car; } if(idd == PlayerInfo[playerid][pprcarkey2]) { personalcar[3][playerid] = car; } if(idd == PlayerInfo[playerid][pPPluscarkey]) { personalcar[4][playerid] = car; } if(idd == PlayerInfo[playerid][pPPluscarkey2]) { personalcar[5][playerid] = car; } masini++; SwitchKey[playerid] = 1; } return 1; } -
Ajutor va rog dau un host de sa-mp il platesc eu in fiecare luna
AndreiB replied to AndreiB's question in Ajutor Scripting
https://pastebin.com/pfUjjvU4 -
Interior adica sa zicem ca esti in fata la usa bun,exterior fix unde vrei sa te dea din casa,complete finalul ca sa o creeze
-
e mai simplu din baza de date asta e bun daca ai vrea sa faci system de apartamente
-
Ajutor va rog dau un host de sa-mp il platesc eu in fiecare luna
AndreiB posted a question in Ajutor Scripting
Salut am o problema la gamemodeul bigzone se suprapune slot 6 cu slotul 5 la /v sa zicem ca pe slotul 5 am elegy si pe slotul 6 infernus cand ies de pe server si intru i,i arata ca pe slotul 6 am tot elegy dar aveam infernus Cine ma ajuta ii dau host de sa-mp il platesc eu nici o problema -
CMD:vipneon(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); if(GetPlayerState(playerid) == 2) { if(personalcar[0][playerid] == vehicleid || personalcar[1][playerid] == vehicleid || personalcar[2][playerid] == vehicleid || personalcar[3][playerid] == vehicleid || personalcar[4][playerid] == vehicleid || personalcar[5][playerid] == vehicleid) { if(CarInfo[OwnedVeh(vehicleid)][cVipVehicle] == 1) { ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon VIP Car", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove All Neon", "Select", "Cancel"); } else return SCM(playerid, COLOR_LIGHTRED, "Acest vehicul nu este VIP"); } else return SCM(playerid, COLOR_LIGHTRED, "Acest vehicul nu este al tau!"); } else return SCM(playerid, COLOR_LIGHTRED, "Trebuei sa fii soferul vehiculului."); } else return SCM(playerid, COLOR_LIGHTRED, "Nu te aflii intr-un vehicul"); return 1; } Comanda si da erorile astea C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : error 001: expected token: ",", but found "-integer value-" C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : warning 215: expression has no effect C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : error 001: expected token: ";", but found ")" C:\Users\Eroare\Desktop\RPG.REDZONE.RO\gamemodes\bigzone.pwn(32509) : error 029: invalid expression, assumed zero C:\Users\Eroare\Desktop\RPG.BIGZONE.RO\gamemodes\bigzone.pwn(32509) : fatal error 107: too many error messages on one line linia este urmatoarea ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon VIP Car", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove All Neon", "Select", "Cancel");
-
Salutare nu inteleg dece nu se deschid barierele de la lspd,lvpd,sfpd habar nam si scritul in gamemode este facut
-
Am rezolvat era de la samp-ul meu ms oricul +1
-
Am o mica/mare problema am system de radio pe server si cand apas de ex pe pro fm se aude vreo 2 secunde si dupa se opreste si nu se mai aude ce pot sa fac?
-
Intra pe localhost/phpmyadmin si creeaza o baza cu numele baza4 si dai import la baza ta de date si gata
-
Ms STR_MARIAN o sa ai +1 la fiecare postare de acuma
-
Cer T/C am rezolvat
-
Hai ms cred ca am rezolvat,dar cum pot face sa citeasca barierele la lspd
-
De la astea sunt errorile //NG BAZA gateng = CreateObject(19313, 135.2833, 1941.3331, 21.6932, 0.0000, 0.0000, 0.0000,-1,-1,-1); CreateDynamicObject(19312, 191.14, 1870.04, 21.48,0.0000, 0.0000, 0.0000,-1,-1,-1,300.0); //Lvpd gatelvpd = CreateObject(971, 2334.8999000, 2444.3999000, 8.3000000, 0.0000000, 0.0000000, 60.0000000,-1,-1,-1,3); gatelvpd2 = CreateObject(971, 2294.2000000, 2499.1001000, 5.7000000, 0.0000000, 0.0000000, 272.0000000,-1,-1,-1); CreateDynamicObject(955, 2273.52612, 2429.61206, 10.21940, 0.00000, 0.00000, 0.00000,-1,-1,-1,300.0); //usa CreateDynamicObject(1967, 2294.09497, 2494.32983, 3.40540, 0.00000, 0.00000, -4.68000,-1,-1,-1,300.0); //dozatorul CreateDynamicObject(19313, 2251.27319, 2498.03394, 5.56540, 0.00000, 0.00000, -90.36000,-1,-1,-1,300.0); //gratii lspdbar = CreateObject(968, 1544.7007, -1630.7527, 13.2983, 0.0000, 90.0200, 90.0000,-1,-1,-1); //Lvpd Object lvpdbar = CreateObject(968, 2238.22021, 2450.44312, 10.58781, 0.0000, 90.0200, 90.0000,-1,-1,-1); si alea lose indirection erau de la actori nu erau aranjati in linie
-
C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(24369) : warning 217: loose indentation C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(24374) : warning 217: loose indentation C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25396) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25396) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25406) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25406) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25406) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25407) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25407) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25416) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25416) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25419) : warning 202: number of arguments does not match definition C:\Users\Valy\Desktop\Diamonds RPG\gamemodes\diamonds.pwn(25419) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 13 Warnings.
-
Fac cum zici acuma am sters alea 300.0 si sa vad
-
Functioneaza dar nu citestese barierele si sunt warnigurile alea