-
Posts
1.557 -
Joined
-
Last visited
-
Days Won
28
Content Type
Profiles
Forums
News
Documentation
Everything posted by Джо
-
Asta fiindca nu ai puse coordonatele din interiorul respectiv. Gresit: if(location == 203 && IsACop(playerid)) Corect: if(location == 1 && IsACop(playerid)) Comanda corecta: if (strcmp(cmd, "/buygun", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPlayerMoney(playerid) < 1) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You dont have enough money with you !"); return 1; } if (PlayerInfo[playerid][pGunLic] < 1) { SendClientMessage(playerid, COLOR_WHITE, "[Eroare]: Nu detii licenta de arme !"); return 1; } new gun; new gunid[16]; new gunstring1[256]; new gunstring2[256]; new gunstring3[256]; new gunstring4[256]; new gunstring5[256]; new infostring[256]; new guncharge; new ammocharge; new location = PlayerInfo[playerid][pLocal]; if(location == 200 || location == 203) { if(BizzInfo[location-200][bProducts] <= 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } new mod2 = 100; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), "{00A1FF}USAGE{FFFFFF}: /buygun [gunname] [ammoamount]"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Guns & Ammo ***"); SendClientMessage(playerid, COLOR_WHITE,string); format(gunstring1, 256, "Weapons: parachute (%s) golfclub (%s) nightstick (%s) baseballbat (%s) shovel (%s) poolcue (%s)", DecimalPoint(GunPrice[0][0]/100*mod2),DecimalPoint(GunPrice[1][0]/100*mod2),DecimalPoint(GunPrice[2][0]/100*mod2), DecimalPoint(GunPrice[3][0]/100*mod2),DecimalPoint(GunPrice[4][0]/100*mod2),DecimalPoint(GunPrice[5][0]/100*mod2),DecimalPoint(GunPrice[6][0]/100*mod2)); SendClientMessage(playerid, COLOR_WHITE, gunstring1); format(gunstring2, 256, "Weapons: purpledildo (%s) whitedildo (%s) longwhitedildo (%s) whitedildo2 (%s) flowers (%s) cane (%s)", DecimalPoint(GunPrice[7][0]/100*mod2),DecimalPoint(GunPrice[8][0]/100*mod2),DecimalPoint(GunPrice[9][0]/100*mod2), DecimalPoint(GunPrice[10][0]/100*mod2),DecimalPoint(GunPrice[11][0]/100*mod2),DecimalPoint(GunPrice[12][0]/100*mod2)); SendClientMessage(playerid, COLOR_WHITE, gunstring2); format(gunstring3, 256, "Weapons: sdpistol (%s) deagle (%s) mp5 (%s) shotgun (%s) ak47 (%s) m4 (%s) rifle (%s)", DecimalPoint(GunPrice[13][0]/100*mod2),DecimalPoint(GunPrice[14][0]/100*mod2),DecimalPoint(GunPrice[15][0]/100*mod2), DecimalPoint(GunPrice[16][0]/100*mod2),DecimalPoint(GunPrice[17][0]/100*mod2),DecimalPoint(GunPrice[18][0]/100*mod2), DecimalPoint(GunPrice[19][0]/100*mod2)); SendClientMessage(playerid, COLOR_WHITE, gunstring4); format(gunstring5, 256, "Weapons: pistolammo (%s) shotgunammo (%s) smgammo (%s) assaultammo (%s) rifleammo (%s)", DecimalPoint(GunPrice[25][0]/100*mod2),DecimalPoint(GunPrice[26][0]/100*mod2),DecimalPoint(GunPrice[27][0]/100*mod2), DecimalPoint(GunPrice[28][0]/100*mod2),DecimalPoint(GunPrice[29][0]/100*mod2)); SendClientMessage(playerid, COLOR_WHITE, gunstring5); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), "{00A1FF}USAGE{FFFFFF}: /buygun [gunname] [ammoamount]"); return 1; } new ammo = strval(tmp); if(ammo < 1 || ammo > 999) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: Ammo ammount not lower then 1 or higher then 999 !"); return 1; } if (strcmp(gunid, "parachute", true, strlen(gunid)) == 0) { gun = 46; guncharge = GunPrice[0][0]/100*mod2; ammocharge = 0; } else if (strcmp(gunid, "golfclub", true, strlen(gunid)) == 0) { gun = 2; guncharge = GunPrice[1][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 2; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "nightstick", true, strlen(gunid)) == 0) { gun = 3; guncharge = GunPrice[2][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 3; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "baseballbat", true, strlen(gunid)) == 0) { gun = 5; guncharge = GunPrice[4][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 5; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "shovel", true, strlen(gunid)) == 0) { gun = 6; guncharge = GunPrice[5][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 6; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "poolcue", true, strlen(gunid)) == 0) { gun = 7; guncharge = GunPrice[6][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 7; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "purpledildo", true, strlen(gunid)) == 0) { gun = 10; guncharge = GunPrice[7][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 10; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "whitedildo", true, strlen(gunid)) == 0) { gun = 11; guncharge = GunPrice[8][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 11; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "longwhitedildo", true, strlen(gunid)) == 0) { gun = 12; guncharge = GunPrice[9][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 12; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "whitedildo2", true, strlen(gunid)) == 0) { gun = 13; guncharge = GunPrice[10][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 13; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "flowers", true, strlen(gunid)) == 0) { gun = 14; guncharge = GunPrice[11][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 14; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "cane", true, strlen(gunid)) == 0) { gun = 15; guncharge = GunPrice[12][0]/100*mod2; ammocharge = 0; //PlayerInfo[playerid][pGun1] = 15; PlayerInfo[playerid][pAmmo1] = 1; } else if (strcmp(gunid, "sdpistol", true, strlen(gunid)) == 0) { gun = 23; guncharge = GunPrice[13][0]/100*mod2; ammocharge = GunPrice[25][0]*ammo; //PlayerInfo[playerid][pGun2] = 23; PlayerInfo[playerid][pAmmo2] = ammo; } else if (strcmp(gunid, "deagle", true, strlen(gunid)) == 0) { gun = 24; guncharge = GunPrice[15][0]/100*mod2; ammocharge = GunPrice[25][0]*ammo; //PlayerInfo[playerid][pGun2] = 24; PlayerInfo[playerid][pAmmo2] = ammo; } else if (strcmp(gunid, "mp5", true, strlen(gunid)) == 0) { gun = 29; guncharge = GunPrice[18][0]/100*mod2; ammocharge = GunPrice[27][0]*ammo; //PlayerInfo[playerid][pGun3] = 29; PlayerInfo[playerid][pAmmo3] = ammo; } else if (strcmp(gunid, "shotgun", true, strlen(gunid)) == 0) { gun = 25; guncharge = GunPrice[19][0]/100*mod2; ammocharge = GunPrice[26][0]*ammo; //PlayerInfo[playerid][pGun3] = 25; PlayerInfo[playerid][pAmmo3] = ammo; } else if (strcmp(gunid, "ak47", true, strlen(gunid)) == 0) { gun = 30; guncharge = GunPrice[22][0]/100*mod2; ammocharge = GunPrice[28][0]*ammo; //PlayerInfo[playerid][pGun4] = 30; PlayerInfo[playerid][pAmmo4] = ammo; } else if (strcmp(gunid, "m4", true, strlen(gunid)) == 0) { gun = 31; guncharge = GunPrice[23][0]/100*mod2; ammocharge = GunPrice[28][0]*ammo; //PlayerInfo[playerid][pGun4] = 31; PlayerInfo[playerid][pAmmo4] = ammo; } else if (strcmp(gunid, "rifle", true, strlen(gunid)) == 0) { gun = 33; guncharge = GunPrice[24][0]/100*mod2; ammocharge = GunPrice[29][0]*ammo; //PlayerInfo[playerid][pGun4] = 33; PlayerInfo[playerid][pAmmo4] = ammo; } else { SendClientMessage(playerid, COLOR_GRAD6, "ShopKeeper says: I have never heard of that weapon."); return 1; } if((guncharge+ammocharge) > GetPlayerMoney(playerid)) { format(infostring, 256, "[Eroare]: You don't have %s !",DecimalPoint(guncharge+ammocharge)); SendClientMessage(playerid, COLOR_GRAD3, infostring); return 1; } if(GetPlayerMoney(playerid) < (guncharge+ammocharge)) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: Can't afford that !"); return 1; } new payout = guncharge + ammocharge; format(infostring, 256, "You have purchased %s with %d ammo for %s",gunid,ammo,DecimalPoint(payout)); SendClientMessage(playerid, COLOR_GRAD3, infostring); if(location == 1 && IsACop(playerid)) { } else { SafeGivePlayerMoney(playerid, - payout); } BizzInfo[location-200][bTill] += payout; ExtortionBiz(location-200, payout); BizzInfo[location-200][bProducts]--; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SafeGivePlayerWeapon(playerid, gun, ammo); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s bought weapons for %s at biz %d", sendername, DecimalPoint(payout), location-200); PayLog(string); } else { SendClientMessage(playerid, COLOR_WHITE,"[Eroare]: You are not in a store."); return 1; } } return 1; } Pentru a vedea lista cu interioarele bizurilor sau a caselor ai aici: http://weedarr.wikidot.com/interior
-
Bun,da patrea aia cu X e la datorie pentru y dolari...
-
Ai doua posibilitati: I.Recompilezi Gamemode-ul tau,dupa care incerci din nou sa pornesti serverul. II.Updatezi toate pluginurile urmand sa pornesti din nou serverul. III.Descarci nativechecker.dll urmand sa il introduci in serverul tau>>plugins,urmand sa scri si in server.cfg nativechecker. Dupa pornesti serverul si vezi ce erori iti da,postezi aici erorile. Nativechecker poti downloada de aici. http://forum.sa-mp.com/showthread.php?t=249226
-
Tu cand dai /fare nu iti apare nimic?Ca ai pus taxa x?
-
for(new i = 0; i < sizeof(BizzInfo); i++) { if (PlayerToPoint(3, playerid,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ])) { if(!IsACop(playerid) && i == 3) { SendClientMessage(playerid, COLOR_GREY, "Bine ai venit in Armoury LSPD !"); } } return 1; }
-
Dane tot ce tine de TransportDriver.
-
Pur si simplu,intrii pe server intrii intr-un buz si dai /face si vezi ca o sa scrie ceva acolo ca esti la datorie,si cauti in gm tot ceea ce iti spune acolo.
-
Hopa! Bravo ma! 99/10
-
Las ca, ca tine sunt multi care zic ca dau bani si defapt iti dau .... Foloseste un textdraw creator dupa care il introduci in GM,urmand sa dai un ShowTextdraw la comanda /wanted.
-
Topic Closed! 48h fara postare.
-
Posteaza si partea cu %S este la datorie.Pret x...Posteaza partea aia.
-
Eu iti dau doar pentru ultimu model,iar dupa ala te iei tu... forward scoatevip(); public scoatevip(); { SendClientMessageToAll(playerid, COLOR_RED, "%s a ramas fara VIP.Motiv:I s-a scurs termenul.", giveplayer);; PlayerInfo[ playerid ][ pVip ] = 0; } case 9: { if ( PlayerInfo[ playerid ][ Coins ] < 50 ) return Info( playerid, "~r~~h~ERROR:~n~~w~~h~You don't have enough ~r~~h~coins~w~~h~ to buy this option !" ); if ( PlayerInfo[ playerid ][ hours ] < 4000 ) return Info( playerid, "~r~~h~ERROR:~n~~w~~h~You don't have enough ~r~~h~hours~w~~h~ to buy this option !" ); PlayerInfo[ playerid ][ pVip ] = 10; PlayerInfo[ playerid ][ hours ] -= 50; PlayerInfo[ playerid ][ Coins ] -= 4000; SetTimer("scoatevip", 604800, false);// 604800 inseamna timpu in milisecunde. *7 zile* Info( playerid, "~y~~h~INFO:~n~~w~~h~You have just bought VIP Level 10 for ~r~~h~20.000 ~w~~h~coins and ~r~~h~150 ~w~~h~hours!!!", 5000 ); return ( 1 ); } } return ( 1 ); }
-
Vine asa: forward TimeForRob() public TimeForRob() { ....
-
Frumos.Bravo! 10/10
-
Pai ce ai postat tu,ai postat numai un public si o comanda. Posteaza si restul si te ajutam.
-
Aici e timeru pentru a vedea daca X e in zona de war.. SetTimer("Ballas",500, true); forward Ballas(); public Ballas() { for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) for(new i=0; i<sizeof(ZoneInfo); i++) { if(IsPlayerInZone(playerid, i) && ZoneInfo[zTeam] == ID) // In cazul tau 1(din cate am vazut) { GameTextForPlayer(playerid, "Ai intrat in zona Ballas!",5000, 1); return 1; } return 1; }
-
Incearca asa CMD:setrfire(playerid, params[]) { if(FireworkTotal == MAX_LAUNCH) { SendClientMessage(playerid, COLOR_WHITE, "Ai setat deja artificia la locu potrivit"); return 1; } if(Fired == 1) { SendClientMessage(playerid, COLOR_WHITE, "Asteapta sa explodeze!"); return 1; } new Float:X, Float:Y,Float:Z; firerockettime[playerid] = 2; new string[128]; new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s a aprins un artificiu!Sarbatori fericite!", sendername); ProxDetector(15.0, playerid, string, WHITE,WHITE,WHITE,WHITE,WHITE); GetPlayerPos(playerid,X,Y,Z); foreach(Player, i) { if(IsPlayerInRangeOfPoint(i, 30, x, y, z)) { SendClientMessage(i, COLOR_YELLOW, string); } } GetPlayerFacingAngle(playerid, a); x += (2 * floatsin(-a, degrees)); y += (2 * floatcos(-a, degrees)); // Lans GetXYInFrontOfPlayer(playerid, X,Y, distance); Firerocket[playerid] = CreateObject(354, X,Y,(Z), 0, 0, 0); rocketsmoke[playerid] = CreateObject(2780, X,Y,(Z), 0, 0, 0); MoveObject(Firerocket[playerid], X, Y, Z+50, 15); MoveObject(rocketsmoke[playerid], X, Y, Z+50, 15); SetTimerEx("FirerocketTime", 3000, 0, "i", playerid); return 1; } Pui urmatoarele: new Float:FRX[MAX_PLAYERS], Float:FRY[MAX_PLAYERS], Float:FRZ[MAX_PLAYERS]; new Float:FTX[MAX_PLAYERS], Float:FTY[MAX_PLAYERS], Float:FTZ[MAX_PLAYERS]; new Float:RBX[MAX_PLAYERS], Float:RBY[MAX_PLAYERS], Float:RBZ[MAX_PLAYERS]; new firerockettime[MAX_PLAYERS]; new Firecracker[MAX_PLAYERS]; new Firerocket[MAX_PLAYERS]; new rocketsmoke[MAX_PLAYERS]; enum FWN { Firerocket2, DrawDistance, }; new AllowedFirework[FWN]; forward FirerocketTime(playerid); public FirerocketTime(playerid) { if(firerockettime[playerid] == 1) { GetObjectPos(Firerocket[playerid], FRX[playerid], FRY[playerid], FRZ[playerid]); explosionrocket[playerid] = CreateExplosion(FRX[playerid], FRY[playerid], FRZ[playerid], 6, 0); SetTimerEx("splittime", 500, 0, "i", playerid); return 1; } if(firerockettime[playerid] == 2) { GetObjectPos(Firerocket[playerid], FRX[playerid], FRY[playerid], FRZ[playerid]); explosionrocket[playerid] = CreateExplosion(FRX[playerid], FRY[playerid], FRZ[playerid], 6, 0); SetTimerEx("splittime2", 100, 0, "i", playerid); return 1; } return 1; } //=----------------------------------Asta o pui si pe ea--------------------------------------= forward splittime(playerid); public splittime(playerid) { if(firerockettime[playerid] == 1) { CreateExplosion(FRX[playerid]-(0+(random(3))),FRY[playerid]-(0+(random(3))),FRZ[playerid]-(0+(random(3))), 4, 0); CreateExplosion(FRX[playerid]-(0+(random(3))),FRY[playerid]+(0+(random(3))),FRZ[playerid]-(0+(random(3))), 4, 0); CreateExplosion(FRX[playerid]-(0+(random(3))),FRY[playerid],FRZ[playerid]-(0+(random(3))), 4, 0); CreateExplosion(FRX[playerid]+(0+(random(3))),FRY[playerid]-(0+(random(3))),FRZ[playerid]-(0+(random(3))), 4, 0); CreateExplosion(FRX[playerid]+(0+(random(3))),FRY[playerid]+(0+(random(3))),FRZ[playerid]-(0+(random(3))), 4, 0); CreateExplosion(FRX[playerid]+(0+(random(3))),FRY[playerid],FRZ[playerid]-(0+(random(3))), 4, 0); CreateExplosion(FRX[playerid],FRY[playerid]-(0+(random(3))),FRZ[playerid]-(0+(random(3))), 4, 0); CreateExplosion(FRX[playerid],FRY[playerid]+(0+(random(3))),FRZ[playerid]-(0+(random(3))), 4, 0); Light[1][playerid] = CreateObject(354,FRX[playerid]-(0+(random(6))),FRY[playerid]-(0+(random(6))),FRZ[playerid]+(0+(random(6))), 0, 0,0); Light[2][playerid] = CreateObject(354,FRX[playerid]-(0+(random(6))),FRY[playerid],FRZ[playerid]+(0+(random(6))), 0, 0,0); Light[3][playerid] = CreateObject(354,FRX[playerid]-(0+(random(6))),FRY[playerid],FRZ[playerid]-(0+(random(6))), 0, 0,0); Light[4][playerid] = CreateObject(354,FRX[playerid]-(0+(random(6))),FRY[playerid]-(0+(random(6))),FRZ[playerid]+(0+(random(6))), 0, 0,0); Light[5][playerid] = CreateObject(354,FRX[playerid]-(0+(random(6))),FRY[playerid]+(0+(random(6))),FRZ[playerid]+(0+(random(6))), 0, 0,0); Light[6][playerid] = CreateObject(354,FRX[playerid]-(0+(random(6))),FRY[playerid],FRZ[playerid]-(0+(random(6))), 0, 0,0); Light[7][playerid] = CreateObject(354,FRX[playerid]-(0+(random(6))),FRY[playerid]-(0+(random(6))),FRZ[playerid]-(0+(random(6))), 0, 0,0); Light[8][playerid] = CreateObject(354,FRX[playerid],FRY[playerid]-(0+(random(6))),FRZ[playerid]+(0+(random(6))), 0, 0,0); new Float:X,Float:Y,Float:Z; GetObjectPos(Light[1][playerid], X, Y, Z); MoveObject(Light[1][playerid], X-(0+(random(6))), Y-(0+(random(6))), Z-20, 6); GetObjectPos(Light[2][playerid], X, Y, Z); MoveObject(Light[2][playerid], X-(0+(random(6))), Y+(0+(random(6))), Z-20, 5); GetObjectPos(Light[3][playerid], X, Y, Z); MoveObject(Light[3][playerid], X-(0+(random(6))), Y, Z-20, 4); GetObjectPos(Light[4][playerid], X, Y, Z); MoveObject(Light[4][playerid], X+(0+(random(6))), Y-(0+(random(6))), Z-20, 5); GetObjectPos(Light[5][playerid], X, Y, Z); MoveObject(Light[5][playerid], X+(0+(random(6))), Y+(0+(random(6))), Z-20, 5); GetObjectPos(Light[6][playerid], X, Y, Z); MoveObject(Light[6][playerid], X+(0+(random(6))), Y, Z-20, 4); GetObjectPos(Light[7][playerid], X, Y, Z); MoveObject(Light[7][playerid], X, Y-(0+(random(6))), Z-20, 6); GetObjectPos(Light[8][playerid], X, Y, Z); MoveObject(Light[8][playerid], X, Y+(0+(random(6))), Z-20, 5); SetTimerEx("lighttimer", 3900, 0, "i", playerid); DestroyObject(Firerocket[playerid]); DestroyObject(rocketsmoke[playerid]); return 1; } return 1; } forward splittime2(playerid); public splittime2(playerid) { if(firerockettime[playerid] == 2) { CreateExplosion(FRX[playerid]-(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 6, 0); CreateExplosion(FRX[playerid]-(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 6, 0); CreateExplosion(FRX[playerid]-(0+(random(10))),FRY[playerid],FRZ[playerid]-5, 6, 0); CreateExplosion(FRX[playerid]+(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 6, 0); CreateExplosion(FRX[playerid]+(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 6, 0); CreateExplosion(FRX[playerid]+(0+(random(10))),FRY[playerid],FRZ[playerid]-5, 6, 0); CreateExplosion(FRX[playerid],FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 6, 0); CreateExplosion(FRX[playerid],FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 6, 0); Light[1][playerid] = CreateObject(354,FRX[playerid]-(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 0, 0,0); Light[2][playerid] = CreateObject(354,FRX[playerid]-(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 0, 0,0); Light[3][playerid] = CreateObject(354,FRX[playerid]-(0+(random(10))),FRY[playerid],FRZ[playerid]-5, 0, 0,0); Light[4][playerid] = CreateObject(354,FRX[playerid]+(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 0, 0,0); Light[5][playerid] = CreateObject(354,FRX[playerid]+(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 0, 0,0); Light[6][playerid] = CreateObject(354,FRX[playerid]+(0+(random(10))),FRY[playerid],FRZ[playerid]-5, 0, 0,0); Light[7][playerid] = CreateObject(354,FRX[playerid],FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 0, 0,0); Light[8][playerid] = CreateObject(354,FRX[playerid],FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 0, 0,0); new Float:X,Float:Y,Float:Z; GetObjectPos(Light[1][playerid], X, Y, Z); MoveObject(Light[1][playerid], X-6, Y-6, Z-20, 4); GetObjectPos(Light[2][playerid], X, Y, Z); MoveObject(Light[2][playerid], X-6, Y+6, Z-20, 4); GetObjectPos(Light[3][playerid], X, Y, Z); MoveObject(Light[3][playerid], X-6, Y, Z-20, 4); GetObjectPos(Light[4][playerid], X, Y, Z); MoveObject(Light[4][playerid], X+6, Y-6, Z-20, 4); GetObjectPos(Light[5][playerid], X, Y, Z); MoveObject(Light[5][playerid], X+6, Y+6, Z-20, 4); GetObjectPos(Light[6][playerid], X, Y, Z); MoveObject(Light[6][playerid], X+6, Y, Z-20, 4); GetObjectPos(Light[7][playerid], X, Y, Z); MoveObject(Light[7][playerid], X, Y-6, Z-20, 4); GetObjectPos(Light[8][playerid], X, Y, Z); MoveObject(Light[8][playerid], X, Y+6, Z-20, 4); SetTimerEx("splittime3", 3000, 0, "i", playerid); DestroyObject(Firerocket[playerid]); DestroyObject(rocketsmoke[playerid]); return 1; } return 1; } public FirerocketTime(playerid) { if(firerockettime[playerid] == 1) { GetObjectPos(Firerocket[playerid], FRX[playerid], FRY[playerid], FRZ[playerid]); explosionrocket[playerid] = CreateExplosion(FRX[playerid], FRY[playerid], FRZ[playerid], 6, 0); SetTimerEx("splittime", 500, 0, "i", playerid); return 1; } if(firerockettime[playerid] == 2) { GetObjectPos(Firerocket[playerid], FRX[playerid], FRY[playerid], FRZ[playerid]); explosionrocket[playerid] = CreateExplosion(FRX[playerid], FRY[playerid], FRZ[playerid], 6, 0); SetTimerEx("splittime2", 100, 0, "i", playerid); return 1; } return 1; }
-
Pai intra in fs-ul acela si dai "firerocket2" si acolo ai niste,CreateExplosion sau ceva de genu,acum nu prea mai am timp,am ceva treaba,si dau teste,daca nu o sa reusesti, o sa te ajut de joi incolo..
-
Esti sigur ca nu se poate? http://www.solidfiles.com/d/0a9a972e2c/Artificii.pwn Asta e bun,e in culori si e smecher,cu petarde artificii bombe etc..
-
CreateDynamicObject(1550,| 2305.984375, | -1.1397848129272, | 26.135528564453 |, 0, 343.99987792969, 83.992492675781); | Coordonatele X | Coordonatele Y | Coordonaatele Z |
-
Daca scoti a doua parte asta inseamna ca nu mai sunt masinile alea pentru joburi,dar ele exista.Cauta in gm Curier8 Curier9 Curier10 si Curier11 si cand dai de AddStaticVehicle/AddStatitcVehicleEx, sau de CreateVehicle le stergi,dar doar pe alea din partea a 2a. Exemplu: curier8 = CreateVehicle(masina,coordonate etc...); Sau curier8 = AddStaticVehicle(masina,coordonate);
-
In ScriptFilles ai Cars.cfg daca nu ai acolo,atunci uitate in Serverul tau>> cars cfg
-
Masinile integrate pe server(cele de factiuni in special) sunt create in gamemode,daca doresti sa scoti toate masinile dute in gamemode si cauta AddStaticVehicle,sau AddStaticVehicleEx,dar daca nu gasesti cauta CreateVehicle. Si stergi tot ce tine de AddStaticVehicle/Ex sau de CreateVehicle.
-
Da,merge dar trebuie sa faci o noua variabila la OnPlayerUpdate si la OnPlayerUpdateEx
