Jump to content

TzAkS

Membru
  • Posts

    1,144
  • Joined

  • Last visited

Everything posted by TzAkS

  1. :| da cum pot sa pun acel checkpoint sa "lucreze" doar la pozitia x y z??
  2. TzAkS

    /ban

    La cum am facut eu mai trebuie completat..da eu scriptez de 2 saptamani:))
  3. TzAkS

    stil de fugit

    Poate ti`ai setat un skin..care are ca anim acel mers/fuga..schimba skinu
  4. mersi de efort..da crezi ca nu am incercat?acolo sunt puse cum trebuie coordonatele..cand intru in joc si daca sunt membru la o factiune ma da la hq..da daca mor ma da la spawn civili
  5. Nu ai treaba cu MTA aici..mai bine faci cu interioare diferite si gata..la cea ce vrei tu sa faci eu nu te pot ajuta..si e normal sa te dea unde le-ai salvat..da tu acolo ai pus de exemplu: la Factiunea 1 x y z diferit de celalalte factiuni?Daca ai pus la toate factiunile si aceleasi coordonate e normal sa ii dea pe toti la un loc..trebuie sa faci pentru fiecare factiune cate un HQ diferit..adica in alta locatie si dupaia pu interioru..o sa ai problema doar cu ce scrii..vor vedea toti ce scriu altii din HQ diferit..aici trebuie facut ceva cu virtual world
  6. :)) crezi ca se schimba ceva? eu trebuie sa pun la OnPlayerEnterCheckpoint(playerid) coordonatele checkpoint-ului..ca sa "lucreze" doar de acolo..nu de la toate checkpoint-urile..si nu stiu cum..sunt mai newbie in scripting
  7. pai nu tre sa pui aceleasi coordonate..fiecare hq are coordonate diferite,si interior`u care il vrei tu...
  8. porftim http://www.sa-mp.ro/forum/index.php?topic=2915.0 Daca nu intelegi ceva intreaba aici
  9. Folosesc un FS..care daca te pui pe checkpoint cand esti in masina te duce intr`un anume loc.. Checkpoint-uri folosesc si unele chestii din gm..si cand ma pun pe un checkpoint care nu are legatura cu fs-ul acela,ma duce in locul in care ar trebuii sa ma duca doar la coordonatele din fs.. In fs am codul acesta care trebuie schimbat.. public OnPlayerEnterCheckpoint(playerid) { if(IsPlayerInAnyVehicle(playerid)) { SetPlayerInterior(playerid,1); LinkVehicleToInterior(GetPlayerVehicleID(playerid),1); SetVehiclePos(GetPlayerVehicleID(playerid),-2042.42,178.59,28.84); SetVehicleZAngle(GetPlayerVehicleID(playerid),90.0); SetPlayerCameraPos(playerid,-2050.5,176.0,30.0); SetPlayerCameraLookAt(playerid,-2042.42,178.59,28.84); return 1; Cum pun coordonatele la checkpointul asta? Pentru ca la linia asta OnPlayerEnterCheckpoint(playerid) foloseste orice checkpoint nu doar cel care vreau eu..
  10. TzAkS

    Problema NPC

    Dar cu register nu trebuie facut nimic?
  11. TzAkS

    Problema NPC

    Permisiuni de unde? Fi mai explicit te rog
  12. TzAkS

    /ban

    Incearca asa..facem o improvizatie Comanda asta o am la /ad.. new adds = 1; new addtimer = 60000 Tu ar trebuii sa pui ceva de genu if ((!adds) && (PlayerInfo[playerid][pAdmin] > 1)) { format(string, sizeof(string), " Textul tau..Ai dat deja ban..bla bla!", (addtimer/1000)); SendClientMessage(playerid, COLOR_GRAD2, string); return 1; Sper sa fie bine
  13. Salut..am incercat sa pun un bot la tren..dar cand deschid serveru imi scrie npc:join Tren_sf has joined...dar pe server nu e:)) in server.cfg am pus la maxnpc..deci nush ce are la public OnGameModeInit() am pus ConnectNPC("Tren_SF","trensf"); trensf = AddStaticVehicle(538,-1943.3127,158.0254,27.0006,357.3614,121,50); return 1; } la public OnPlayerSpawn(playerid) am pus : if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului if(!strcmp(npcname, "Tren_SF", true)) //Verificam daca numele NPCului este "NUME" { PutPlayerInVehicle(playerid, trensf, 0); //Punem NPCul in vehicul } return 1; } am pus si la onplayerconnect if(IsPlayerNPC(playerid)) return 1;
  14. Foarte folositor acest bank-system..5/5 Dar am o problema..cand dau exit sau cancel iau kick..
  15. Salut..Am o problema cu spawn-ul,in orice factiune as fi..imi dau respawn si ma da la spawn civili,si daca pun de exemplu ca vreau sa ma dea in SF..ma da prima data cand intru in joc dar dupaia daca imi dau respawn ma da la spawn civili din LS unde ma da si daca sunt in factiune..am incercat mult sa repar chestia asta dar nu am reusit..modu este unu de pe net..deci unde sa caut?ce sa schimb?
  16. Am luat un mod de pe net sa il modific,acel mod avea un system la /engine,apasai pe shift si pornea.. Eu l`am scos dar am o problema. Cand urc in masina nu mai apare nimic sa pornesc motoru sau ceva de genu,masina merge..asa vreau sa fie ,problema e ca daca apas pe "S" imi da in chat cate o linie goala,ca si cum ai scrie ceva doar ca aceasta linie e goala. Asta se intampla doar din masina.Ma gandesc ca daca fac sa ma dea cu motoru pornit nu ar mai aparea..ca daca scriu /engine nu mai apare acea linie goala.da motoru e deja pornit..da el citeste probabil ca si cum nu ar fi Comanda /engine arata asa: if(!strcmp(cmd, "/engine", true)) { if(IsPlayerConnected(playerid)) { if(IsPlayerInAnyVehicle(playerid)) { if(!engineOn[GetPlayerVehicleID(playerid)]) { if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { return 1; } if(IsAnOwnableCar(idcar)) { if(PlayerInfo[playerid][pPcarkey] == idcar) { } else if(PlayerInfo[playerid][pPcarkey2] == idcar) { } else if(PlayerInfo[playerid][pPcarkey3] == idcar) { } else { return 1; } } if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509) { return 1; } if(idcar == 59 || idcar == 60) { return 1; } if(idcar >= 135 && idcar <= 154) { if(HireCar[playerid] != idcar) { return 1; } } if(IsAPlane(idcar)) { return 1; } if(IsAHarvest(idcar)) { return 1; } if(IsADrugHarvest(idcar)) { return 1; } if(IsASweeper(idcar)) { return 1; } if(gEngine[playerid] == 1) { return 1; } new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",3500,0,"i",playerid); GameTextForPlayer(playerid, "Starting The Vehicle Engine",3500,3); gEngine[playerid] = 1; return 1; } if(engineOn[GetPlayerVehicleID(playerid)]) { if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { return 1; } if(IsAnOwnableCar(idcar)) { if(PlayerInfo[playerid][pPcarkey] == idcar) { } else if(PlayerInfo[playerid][pPcarkey2] == idcar) { } else if(PlayerInfo[playerid][pPcarkey3] == idcar) { } else { return 1; } } if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509) { return 1; } if(idcar == 59 || idcar == 60) { return 1; } if(idcar >= 135 && idcar <= 154) { if(HireCar[playerid] != idcar) { return 1; } } if(IsAHarvest(idcar)) { return 1; } if(IsADrugHarvest(idcar)) { return 1; } if(IsAPlane(idcar)) { return 1; } if(IsASweeper(idcar)) { return 1; } engineOn[GetPlayerVehicleID(playerid)] = false; //RemovePlayerFromVehicle(playerid); GetPlayerName(playerid, sendername,sizeof(sendername)); format(string, sizeof(string), "* %s spins the vehicle key and turns off the engine.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); gEngine[playerid] = 0; Mai continua cu ceva care nu are legatura. Poate are legatura si comanda /startup: if(!strcmp(cmd, "/startup", true)) { if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine already started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you think that you can start an engine which you don't have?"); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!"); if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you think you can steal a car?"); if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to start a bike!"); if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!"); if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you think you can steal a car?"); engineOn[GetPlayerVehicleID(playerid)] = true; TogglePlayerControllable(playerid, true); new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s spins a key and starts the engine.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return true; } if(!strcmp(cmd, "/turnoff", true)) { if(!engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Engine not started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Do you think that you can start an engine which you don't have?"); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Only the driver can do this!"); if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Unknown command"); if(pveh == 510) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Bike doesn't have an engine"); if(pveh == 462) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "You don't need to do that"); if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Access denied!"); engineOn[GetPlayerVehicleID(playerid)] = false; RemovePlayerFromVehicle(playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s turns off the engine.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return true; }*/ Am cautat daca exista vreun sendername gol,da nu e.. de genu asta: GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string),"", sendername);
  17. Am rezolvat singur. Era de la o "}",da tot nu ii inteleg rostu ca sa dea acelele erori,in fine. Acum am alta problema,am facut comanda "/gotogsf",dar daca sunt in masina,ma duce acolo dar ma da pe masina.
  18. Cand bag comanda "/gotogsf" imi da aceste erori la compile: C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(1722) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(1751) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(1787) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(1788) : error 004: function "SafeGivePlayerWeapon" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(1815) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2286) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2297) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2309) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2313) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2325) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2329) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2333) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2337) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2341) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2345) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2349) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2353) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2365) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2369) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2373) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2377) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2381) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2393) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2397) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2401) : error 004: function "PlayerToPoint" is not implemented C:\Documents and Settings\TzAkS\Desktop\server\server\gamemodes\server.pwn(2413) : error 004: function "PlayerToPoint" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors. Si daca scot acea comanda nu mai primesc erori. Liniile sunt: 1722 SafeGivePlayerMoney(i, value); 1751 SafeGivePlayerMoney(i, value); 1787 SafeResetPlayerWeapons(i); 1788 SafeGivePlayerWeapon(i, 29, 999); 1815 SafeResetPlayerWeapons(i); 2286 if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) || PlayerToPoint(50,playerid,537.3366,-1293.2140,17.2422) || PlayerToPoint(35,playerid,2521.5544,-1524.4504,23.8365) || PlayerToPoint(50,playerid,2155.0146,-1177.3333,23.8211) || PlayerToPoint(50,playerid,299.1723,-1518.6627,24.6007)) 2297 if(PlayerToPoint(30.0,playerid,1696.5543,-1053.4685,23.9063)) 2309 if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047)) 2313 else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047)) 2325 if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906)) Primesc erori la toate liniile care au cordonatele din linia 2286 de mai sus Nu inteleg ce legatura au cu /gotogsf care am pus`o eu. Comanda care am bagat`o e aceasta: if(strcmp(cmd, "/gotogsf", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 3) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -1987.7,137.3,27.5); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid, -1987.7,137.3,27.5); } SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported !"); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pVirWorld] = 0; } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); } } return 1;
  19. pentru imprumut cred ca ar merge asta if(strcmp(cmdtext, "/imprumut", true) == 0) { SendClientMessage(playerid, 0xFFFFFFFF, "Ai imprumutat 99$"); GivePlayerMoney(playerid, 99); return 1; } Saliery tu aveai comanda /deposit1 cu un dialog,ai putea sa o folosesti pe aia Poate ati putea pune voi o limita la imprumut,Gen Suma trebuie sa fie intre x si y.
×
×
  • 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.