Jump to content

gabbii

Membru
  • Posts

    150
  • Joined

  • Last visited

    Never

Everything posted by gabbii

  1. uite aici un sitem http://www.sa-mp.ro/forum/index.php?topic=13023.0 si integreazal in gm...
  2. uite aici http://www.sa-mp.ro/forum/index.php/topic,17838.0.html daca dadeai un search gaseai...
  3. incearca asa: [pawn] if(strcmp(cmd, "/gethere", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /gethere [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerInfo[plo][pAdmin] > 1340) { SendClientMessage(playerid, COLOR_GRAD1, "Ask the admin to goto you."); return 1; } if (PlayerInfo[playerid][pAdmin] >= 3 || PlayerInfo[playerid][pHelper] >= 3) { GetPlayerPos(playerid, plocx, plocy, plocz); if(PlayerInfo[playerid][pInt] > 0) { SetPlayerInterior(plo,PlayerInfo[playerid][pInt]); PlayerInfo[plo][pInt] = PlayerInfo[playerid][pInt]; PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal]; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(plo,0); } if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(plo,1); PlayerInfo[plo][pInt] = 1; } if (GetPlayerState(plo) == 2) { TelePos[plo][0] = 0.0; TelePos[plo][1] = 0.0; new tmpcar = GetPlayerVehicleID(plo); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(plo,plocx,plocy+2, plocz); } SendClientMessage(plo, COLOR_GRAD1, " You have been teleported"); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } } else { format(string, sizeof(string), " %d is not an active player.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn]
  4. pai alea 2 comenzi fac parte din scripting...
  5. Nu se cer scripturi, gamemod, filescript! cer ca un admin, moderator sa dea lock.
  6. Cum vrei sa fi ajutat daca nu arati comanda?
  7. am incercat sa bag 3dtextlabel la case, bizuri si sbizuri si am urmatoarele erori: C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47481) : error 017: undefined symbol "SBizzLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47483) : error 017: undefined symbol "SBizzLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47487) : error 017: undefined symbol "SBizzLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47489) : error 017: undefined symbol "SBizzLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47502) : error 017: undefined symbol "HouseLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47504) : error 017: undefined symbol "HouseLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47508) : error 017: undefined symbol "HouseLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47510) : error 017: undefined symbol "HouseLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47516) : error 017: undefined symbol "HouseLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47518) : error 017: undefined symbol "HouseLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47535) : error 017: undefined symbol "BizzLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47537) : error 017: undefined symbol "BizzLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47541) : error 017: undefined symbol "BizzLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(47543) : error 017: undefined symbol "BizzLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(48127) : warning 209: function "CustomPickups" should return a value C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(48128) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 15 Errors. uitati linile [pawn]if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0) { for(new h = 0; h < sizeof(SBizzInfo); h++) { if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ])) { format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]); GameTextForPlayer(i, string, 5000, 3); return 1; } if(PlayerToPoint(30.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ])) { if(SBizzInfo[h][sbOwned] == 1) { Delete3DTextLabel(Text3D:SBizzLabel); format(string, sizeof(string), "%s\nOwner: {F7FAF9}%s\n{2672ED}Bizz Fee: {F7FAF9}%d$",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbEntranceCost]); SBizzLabel = Create3DTextLabel(string ,COLOR_GREEN,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20,0,1); } else { Delete3DTextLabel(Text3D:SBizzLabel); format(string, sizeof(string), "%s\n {2672ED}Price: {F7FAF9}$%d\n{2672ED}Level: {F7FAF9}%d\n{2672ED}type /buybiz to buy this business.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]); SBizzLabel = Create3DTextLabel(string ,COLOR_GREEN,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20,0,1); } return 1; } } for(new h = 0; h < sizeof(HouseInfo); h++) { if(PlayerToPoint(30.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez])) { if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { Delete3DTextLabel(Text3D:HouseLabel); format(string, sizeof(string), "House %d \n Owner: {F7FAF9}%s\n{5DCC18}Level: {F7FAF9}%d",HouseInfo[h][hWorld],HouseInfo[h][hOwner],HouseInfo[h][hLevel]); HouseLabel = Create3DTextLabel(string ,COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1); } else { Delete3DTextLabel(Text3D:HouseLabel); format(string, sizeof(string), "House %d\nOwner: {F7FAF9}%s\n {4CA813}Rent: {F7FAF9}$%d\n{4CA813}Level: {F7FAF9}%d\n{4CA813}type /rentroom to rent a room.",HouseInfo[h][hWorld],HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]); HouseLabel = Create3DTextLabel(string ,COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1); } return 1; } else { Delete3DTextLabel(Text3D:HouseLabel); format(string,sizeof(string),"For Sale\n {4CA813}Info: {F7FAF9}%s\n{4CA813}Price: {F7FAF9}%d$\n{4CA813}Level: {F7FAF9}%d\n{4CA813}type /buyhouse to buy this house.",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]); HouseLabel = Create3DTextLabel(string ,COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15,0,1); } return 1; } } for(new h = 0; h < sizeof(BizzInfo); h++) { if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ])) { format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]); GameTextForPlayer(i, string, 5000, 3); return 1; } if(PlayerToPoint(30.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ])) { if(BizzInfo[h][bOwned] == 1) { Delete3DTextLabel(Text3D:BizzLabel); format(string, sizeof(string), "%s\n{2672ED}Owner: {F7FAF9}%s\n{2672ED}Fee: {F7FAF9}$%d\n{2672ED}type /enter to enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bEntranceCost]); BizzLabel = Create3DTextLabel(string ,COLOR_GREEN,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20,0,1); } else { Delete3DTextLabel(Text3D:BizzLabel); format(string, sizeof(string), "%s\n{2672ED}Price: {F7FAF9}%d$\n{2672ED}Level: {F7FAF9}%d\n{2672ED}type /buybiz to buy this business.",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]); BizzLabel = Create3DTextLabel(string ,COLOR_GREEN,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20,0,1); } return 1; } } }[/pawn]
  8. gabbii

    police car

    Am pus masinile de police dar pot sa intru in ele chiar daca nus politist uitati linile [pawn]public IsACopCar(carid) { if((carid == police1) || (carid == police2) || (carid == police3) || (carid == police4) || (carid == police5) || (carid == police6) || (carid == police7) || (carid == police8) || (carid == police9) || (carid == police10)) if((carid == police11) || (carid == police12) || (carid == police13) || (carid == police14) || (carid == police15) || (carid == police16) || (carid == police17) || (carid == police18) || (carid == police19) || (carid == police20) || (carid == police21) || (carid == police22) || (carid == police23)) { return 1; } return 0; }[/pawn] si mai vreau cand un alt membru inafara de pd,fbi,ng sa ia wanted cand se suie in masina.. uitati si linile [pawn] if(IsACopCar(newcar)) { if(PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 3||PlayerInfo[playerid][pMember] == 3) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You are not a Police Departament member."); } }[/pawn]
  9. gabbii

    AudioStream

    frumos, simplut sa merge :X 5/5 GG
  10. io am larp modificat de mine in proportie de 90% si am sistemul de masini de larp...
  11. gabbii

    audio logare

    thx.. am uitat sa dau search....
  12. Cum pot sa fac cand te conectezi pe server la logare sa incarce o melodie dintr-un link si dupa ce teai logat sa dispara sunetu melodiei? Nu cer script, etc... io cer doar de unde sa incep ca fac eu restul...
  13. atunci sterge toate linile la care iti da eroare!
  14. da ctrl+f si cauta [pawn]#define udb_hash[/pawn] si inlocuiesteo cu asta [pawn]//#define udb_hash[/pawn] si asa fa si la celelante....
  15. cum pot sa definesc? nam ideei... scz pt dublu post, sorry
  16. am incercat sa fac la fiecare cladire sa pun in 3d text pentru /enter.. am bagat totul dar imi da eror C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(11957) : error 017: undefined symbol "create3DTextLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(11958) : error 017: undefined symbol "create3DTextLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(11959) : error 017: undefined symbol "create3DTextLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(11960) : error 017: undefined symbol "create3DTextLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(11961) : error 017: undefined symbol "create3DTextLabel" C:\Users\Asus\Desktop\server de samp\gamemodes\rolife.pwn(11962) : error 017: undefined symbol "create3DTextLabel" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 6 Errors. uitati linile [pawn] { create3DTextLabel("8ball Track \n to enter use /enter", COLOR_WHITE, 2695.6235,-1704.6960,11.8438,10.0, 0, 1); create3DTextLabel("City Hall \n to enter use /enter", COLOR_WHITE, 384.808624,173.804992,1008.382812,10.0, 0, 1); create3DTextLabel("Dirt Track \n to enter use /enter", COLOR_WHITE, -2111.5686,-443.9720,38.7344,10.0, 0, 1); create3DTextLabel("Hospital Center \n to enter use /enter", COLOR_WHITE, 1169.1206,-1330.0065,1386.4193,10.0, 0, 1); create3DTextLabel("Stunting Track \n to enter use /enter", COLOR_WHITE, -2080.3079,-406.0309,38.7344,10.0, 0, 1); create3DTextLabel("Training place \n to enter use /enter", COLOR_WHITE, 252.3922,117.3684,1003.2188,10.0, 0, 1); }[/pawn]
  17. tu vrei sa fi scripter si nici macar nu sti cat de cat engleza? :huh:
  18. Nu se cer scripturi cauta in alte gm-uri comenzile astea, sau fale singur . pentru ajutor http://wiki.sa-mp.com
  19. Nu lua mod GodFather pentru ca:1: e buguit 2: e prost scriptat Mai bine cautati un sistem de admin bun (recomand 0admin) baga un fs cu masini personale si tiai facut server... Si cand vei sti mai bine scripting pawn sa te apuci sa iti faci un server de la 0...
  20. Daca dadeai un search gaseai! EDIT: http://www.sa-mp.ro/forum/index.php/topic,11388.0.html
  21. Nu se cer scripturi, FS, GM, etc
  22. Nush dc numi incarca masinile pe server... pana acum 3 zile mi-le incarca fara probleme... uitati public loadcar [pawn]public LoadCar() { new arrCoords[13][64]; new strFromFile2[256]; new File: file = fopen("cars.cfg", io_read); if (file) { new idx = 32; while (idx < sizeof(CarInfo)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); CarInfo[idx][cModel] = strval(arrCoords[0]); CarInfo[idx][cLocationx] = floatstr(arrCoords[1]); CarInfo[idx][cLocationy] = floatstr(arrCoords[2]); CarInfo[idx][cLocationz] = floatstr(arrCoords[3]); CarInfo[idx][cAngle] = floatstr(arrCoords[4]); CarInfo[idx][cColorOne] = strval(arrCoords[5]); CarInfo[idx][cColorTwo] = strval(arrCoords[6]); strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255); strmid(CarInfo[idx][cDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255); CarInfo[idx][cValue] = strval(arrCoords[9]); CarInfo[idx][cLicense] = strval(arrCoords[10]); CarInfo[idx][cOwned] = strval(arrCoords[11]); CarInfo[idx][cLock] = strval(arrCoords[12]); printf("CarInfo: %d Owner:%s LicensePlate %s",idx,CarInfo[idx][cOwner],CarInfo[idx][cLicense]); idx++; } } return 1; }[/pawn]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.