Jump to content

tantan_andrey

Membru
  • Posts

    131
  • Joined

  • Last visited

    Never

Everything posted by tantan_andrey

  1. Salut. Am si eu o problema cu serverul. Cand intru in scriptfiles/users in contul meu si de ex: vreau sa imi dau admin, sau sa o deschid asa salvarea mea si sa o inchid, gata face figuri doar celui care iam deschis salvarea. dialogurile nu ii mai apar .. joburile o iau razna.. ( ce pot sa fac?
  2. Compileaza GM-ul/FS-ul cu Pawno de la SA:MP 0.3d !
  3. Off:(( Ce sa fac fratilor? Am bagat si eu Carownership-ul acesta:((. Folosesc GM_ul godFather, si nu stiu ce sa ii fac:( am bagat in gm totul cum zice acolo.. si masinile.. si cand creez masina si vreau sa o cumpar /v buy:( imi zice ca am deja 3 masini:(( si nu am nici macar 1
  4. Acesta este aTextDrawul : //////////////////// TextdrawTime = TextDrawCreate(545.000000, 19.000000, "--"); TextDrawBackgroundColor(TextdrawTime, 255); TextDrawFont(TextdrawTime, 3); TextDrawLetterSize(TextdrawTime, 0.659999, 2.499999); TextDrawColor(TextdrawTime, -1); TextDrawSetOutline(TextdrawTime, 0); TextDrawSetProportional(TextdrawTime, 1); TextDrawSetShadow(TextdrawTime, 1); //Day TextdrawDay = TextDrawCreate(499.000000, 5.000000, "--"); TextDrawBackgroundColor(TextdrawDay, 255); TextDrawFont(TextdrawDay, 3); TextDrawLetterSize(TextdrawDay, 0.519999, 1.600000); TextDrawColor(TextdrawDay, -1); TextDrawSetOutline(TextdrawDay, 0); TextDrawSetProportional(TextdrawDay, 1); TextDrawSetShadow(TextdrawDay, 1); //Month TextdrawMonth = TextDrawCreate(527.000000, 5.000000, "---------"); TextDrawBackgroundColor(TextdrawMonth, 255); TextDrawFont(TextdrawMonth, 3); TextDrawLetterSize(TextdrawMonth, 0.519999, 1.600000); TextDrawColor(TextdrawMonth, -1); TextDrawSetOutline(TextdrawMonth, 0); TextDrawSetProportional(TextdrawMonth, 1); TextDrawSetShadow(TextdrawMonth, 1); Si l-am bagat la onplayerconnect :(
  5. Salut. Ce pot sa fac si eu ( Nu imi apare nici-un textdraw bagat in GM:( Nici fs nu apare ( ce sa fac?
  6. Salut. Cum pot sa fac cand ma sui in masina, sa fie oprit motorul, si sa imi zica, pentru a porni motorul apasa tasta 2? Uitati tasta 2.. if((newkeys == KEY_SUBMISSION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { new vid = GetPlayerVehicleID(playerid); if(EngineSTATE[vid] == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 1; SendClientMessage(playerid, 0xFFFFFFAA, "{FFFFFF}Ai {2F991A}pornit {FFFFFF} motorul!"); } else { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 0; SendClientMessage(playerid, 0xFFFFFFAA, "{FFFFFF}Ai {E31919}oprit {FFFFFF} motorul!"); } } return 1; } Cum pot face, ca motorul sa fie oprit in toate masinile, si sa le pornesc numai apasand tasta 2. Acum ele au motorul pornit, si vreau sa fie oprit:(
  7. Salut. Cum pot sa fac cand ma sui in masina, sa fie oprit motorul, si sa imi zica, pentru a porni motorul apasa tasta 2? Uitati tasta 2.. if((newkeys == KEY_SUBMISSION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)) { new vid = GetPlayerVehicleID(playerid); if(EngineSTATE[vid] == 0) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 1; SendClientMessage(playerid, 0xFFFFFFAA, "{FFFFFF}Ai {2F991A}pornit {FFFFFF} motorul!"); } else { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); EngineSTATE[vid] = 0; SendClientMessage(playerid, 0xFFFFFFAA, "{FFFFFF}Ai {E31919}oprit {FFFFFF} motorul!"); } } return 1; } Cum pot face, ca motorul sa fie oprit in toate masinile, si sa le pornesc numai apasand tasta 2. Acum ele au motorul pornit, si vreau sa fie oprit:(
  8. Salut. Am si eu o problema cu, comanda /takejob. Cand ma duc in Primarie acolo in Pick-upul de Joburi, imi iau un job.. chiar daca nu trec 5 ore :(eu tot pot sa imi iau alt job. Cand dau /quitjob nu ma lasa ca imi zice ca trebuie sa astept 5 ore.. sa treaca jobul. Asa as vrea si la comanda /takejob sa imi zica daca am un job:( Uitati comanda if(strcmp(cmd,"/takejob",true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(25.0,playerid,347.8292,162.1138,1025.7891)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, 0x00F5FFFF, "Joburile Serverului XtremeZone RP:"); SendClientMessage(playerid, 0x01CD67FF, "Scrie: /takejob [name]"); SendClientMessage(playerid, 0x01CD67FF, "Job: Detective, Lawyer, Whore, DrugsDealer, CarJacker"); SendClientMessage(playerid, 0x01CD67FF, "Job: NewsReporter, CarMechanic, Bodyguard, ArmsDealer, CarDealer"); SendClientMessage(playerid, 0x01CD67FF, "Job: Boxer, BusDriver, PaperBoy, Trucker, Farmer"); return 1; } if(strcmp(x_nr,"Detective",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul Detective."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul Detective"); PlayerInfo[playerid][pJob] = 1; } } if(strcmp(x_nr,"Lawyer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul Lawyer."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul Lawyer"); PlayerInfo[playerid][pJob] = 18; } } if(strcmp(x_nr,"Whore",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul Whore."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul Whore"); PlayerInfo[playerid][pJob] = 2; } } if(strcmp(x_nr,"DrugsDealer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul DrugsDealer."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul DrugsDealer"); PlayerInfo[playerid][pJob] = 7; } } if(strcmp(x_nr,"CarJacker",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul CarJacker."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul CarJacker"); PlayerInfo[playerid][pJob] = 8; } } if(strcmp(x_nr,"NewsReporter",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul NewsReporter."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul NewsReporter"); PlayerInfo[playerid][pJob] = 14; } } if(strcmp(x_nr,"CarMechanic",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul CarMechanic."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul CarMechanic"); PlayerInfo[playerid][pJob] = 12; } } if(strcmp(x_nr,"Bodyguard",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul Bodyguard."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul Bodyguard"); PlayerInfo[playerid][pJob] = 10; } } if(strcmp(x_nr,"Arms Dealer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul Arms Dealer."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul Arms Dealer"); PlayerInfo[playerid][pJob] = 15; } } if(strcmp(x_nr,"CarDealer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul CarDealer."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul CarDealer"); PlayerInfo[playerid][pJob] = 17; } } if(strcmp(x_nr,"Boxer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul Boxer."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul Boxer"); PlayerInfo[playerid][pJob] = 21; } } if(strcmp(x_nr,"BusDriver",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul BusDriver."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul BusDriver"); PlayerInfo[playerid][pJob] = 16; } } if(strcmp(x_nr,"PaperBoy",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul PaperBoy."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul PaperBoy"); PlayerInfo[playerid][pJob] = 16; } } if(strcmp(x_nr,"Trucker",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul Trucker."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul Trucker"); PlayerInfo[playerid][pJob] = 16; } } if(strcmp(x_nr,"Farmer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, 0x00F5FFFF, "Ai luat jobul Farmer."); SendClientMessage(playerid, 0x01CD67FF, "Ai Contract 5 ore pentru jobul Farmer"); PlayerInfo[playerid][pJob] = 16; } } }//not connected return 1; } Ajutatima Va Rog Frumos.
  9. Salut. Va rog sa ma ajutati URGENT !( Nu mai imi apare nici-o masina pe server, decat cele de la case. ATATA:(( Va rog ce sa fac:(((((???
  10. Pai daca sterg:( imi da 21 de erori:|LOOOL
  11. Salut. Imi da si mie un warning cand dau compile. Warning-ul este: : warning 219: local variable "mod" shadows a variable at a preceding level new mod = 100;
  12. Salut. Am si eu o problema cu GM-ul GODFATHER. Am scos masinile de la case, si mi sau schimbat id-urile la factiuni la masini. Ce sa fac sa revina la normal:(? fara sa bag masinile de la case.. ma enerveaza masinile alea. Va rog ajutatima:(
  13. Da ma ajutat Rimmon:) Multumesc Rimmon:)
  14. Salut. Am si eu o problema:(. Am bagat si eu comanda /specplayeri:(( si imi da urmatoarele erori/warning-uri:((: C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : warning 217: loose indentation C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : error 012: invalid function call, not a valid address C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : warning 215: expression has no effect C:\Documents and Settings\AnD\Desktop\XtremeZone\XtremeZone\gamemodes\GM.pwn(19345) : error 028: invalid subscript (not an array or too many subscripts): "params" C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : error 029: invalid expression, assumed zero C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : fatal error 107: too many error messages on one line Comanda este: dcmd_specplayer(playerid, params[]) { new Giveplayerid, Name[256], String[256], Name2[256]; if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 4) { if (sscanf(params, "d", Giveplayerid)) SendClientMessage(playerid,COLOR_WHITE, "SERVER: /specplayer [Playerid]"); else if (!IsPlayerConnected(Giveplayerid)) SendClientMessage(playerid,COLOR_PURPLE,"Player not connected?"); else { if ( Specing[Giveplayerid] == 1 ) { SendClientMessage(playerid, COLOR_RED, " The person you have tried to spec is spectating someone else."); } else { GetPlayerName(playerid, Name, 256); GetPlayerName(Giveplayerid, Name2, 256); format(String, 256, "[%i] %s is now spectating [%i] %s",playerid, Name,Giveplayerid, Name2); CallLocalFunction("ircRemoteSay", "iss", 1, "#FSE", String); Specing[playerid] = 1; } if ( !IsPlayerInAnyVehicle(Giveplayerid) ) { TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, Giveplayerid); SetPlayerInterior(playerid,GetPlayerInterior(Giveplayerid)); SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Giveplayerid)); return 1; } else { TogglePlayerSpectating(playerid, 1); PlayerSpectateVehicle(playerid, GetPlayerVehicleID(Giveplayerid)); SetPlayerInterior(playerid,GetPlayerInterior(Giveplayerid)); SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Giveplayerid)); return 1; } } } return 1; } dcmd_specoff(playerid, params[]) { #pragma unused params TogglePlayerSpectating(playerid, 0); Specing[playerid] = 0; return 1; }
  15. REZOLVAT. Sistemul de LOGIN/REGISTER nu era bun acela care il bagasem eu !
  16. Fratilor. Cand intru pe server, ma inregistrez.. ma loghez acolo e totul Ok. Ies si intru iarasi pe server, la a 2-a logare gata numai merge. Face ca si in imagine.(:(( Cred ca este de la login/register de la postul de mai sus:(
  17. Salut. Cum pot sa scot si eu masinile de la case, Din gm-ul GODFATHER. Daca le scot, toate id-urile din samp de la masini se fac aiurea.. Cum le pot scoate fara ca id-urile sa nu isi faca nimic cele de la joburi, factiuni.. si toate cele..
  18. Salut. Imi da la compilare GM-ul urmatorul warning: C:\Documents and Settings\AnD\Desktop\GM\gamemodes\GM.pwn(28845) : warning 203: symbol is never used: "LoopingAnim" Linia 28845 nu o am in gm:) este ultima de tot. Ultima linie din gm este 28844. :| Folosesc GM-ul GodFatHer
  19. :( Am descoperit de la ce este. Cand dau Restart la server, se blocheaza. CU /gm sau /endround.. se blocheaza. Cum as putea face sa nu se mai blocheze cand dau restart. Vedeti si in poza de mai sus, asa mi se blocheaza pana dau restart la server. :(( Comenzile /gmx si /endround: if(strcmp(cmd, "/endround", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 3) { GameModeInitExitFunc(); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command !"); } } return 1; } // ----------------------- gmx --------------- if(strcmp(cmd, "/gmx", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1337) { GameModeExit(); } else { SendClientMessage(playerid, COLOR_WHITE, "You don't have acces at this command"); } } return 1; } va roog mult de tot ajutatima.
  20. Nu merge. Cand dau /rac nici macar nu dispar sa apara din now. Nu face nimic. Se respawneaza cele de la factiuni toate toate masinile, inafara de cele cu veh:(
  21. Salut. Am si eu o intrebare. Folosesc programul Scripting Machine. Am creat un Dialog, si la-m adaugat in GM. Imi zice sa mai adaug si la ondialogresponse.. sa mai adaug si acolo cevav. Daca adaug acolo imi da 26 de erori. Am incercat sa pun si la inceput acolo dupa prima { de la ondialogrespose. Si tot imi da 26 de erori. Dar intrebarea este, daca nu mai adaug nimic la ondialogresponse are ceva? Afecteaza serverului? Uitati ce trebuie sa adaug la ondialogresponse if(dialogid == 32767){ if(response){ //The player has pressed "Ok". } else{ //The player has pressed "Iesi". } } return 0; }
×
×
  • 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.