Jump to content

michael.luciano

Membru
  • Posts

    17
  • Joined

  • Last visited

    Never

michael.luciano's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Am si eu o problema , vreau sa fac comanda de /whisper de la level 4 si nu stiu cum , ma poate ajuta cineva ? Comanda /whisper : [pawn]if(strcmp(cmd, "/whisper", true) == 0 || strcmp(cmd, "/w", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/w)hisper [playerid/PartOfName] [whisper text]"); return 1; } giveplayerid = ReturnUser(tmp); if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/w)isper [playerid/PartOfName] [whisper text]"); return 1; } format(string, sizeof(string), "%s whispers: %s", sendername, (result)); SendClientMessage(giveplayerid, COLOR_YELLOW, string); format(string, sizeof(string), "%s whispers: %s", sendername, (result)); SendClientMessage(playerid, COLOR_YELLOW, string); return 1; } } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn]
  2. Interesant o sa il pun pe gm meu sa vad cum e edit : este super 5/5 ! merita sa il pui pe un gm RP sau RPG :D
  3. Am rezolvat dati TC ! multumesc dar nu a fost nimic de folos !
  4. frate nu cred ca ati inteles , am facut toate modalitatile , nu cred ca ati testat masina respectiva , o dublezi da bun dar dupa tiai dat jobul respectiv si ai testat-o ? sau doar ai vazut-o in plus ? ca se pot bugui se da idurile peste cap daca o bagi urmatoare , trebuie ultima bagata sa nu se buguiasca :| si tot nu merge ca dupa o ia ca masina civil
  5. si daca fac asa trebuie sa le mai definesc ? si daca fac asa trebuie sa le mai definesc ? acolo sus : [pawn]new bus1; // astea erau new bus2; // astea erau new bus3; // asta e al 3-lea adica cel care urmeaza dupa cele 2 deja aflate in gm[/pawn] [pawn]bus1 = AddStaticVehicleEx(431,1172.5,-1795.5,13.1,0.0, -1, -1, 30000); // Bus 59 -- deja din gm era bagat bus2 = AddStaticVehicleEx(431,1182.1,-1795.9,13.1,0.0, -1, -1, 30000); // Bus 60 -- deja din gm era bagat AddStaticVehicleEx(431,1182.1000,-1816.7819,13.4949,359.9998, -1, -1, 30000); // asta e al 3-lea [/pawn]
  6. am facut asa , si imi da eroare am facut exact cum am zis acolo si ai zis : "exact" nu merge.. imi da niste warninguri... warning 204: symbol is assigned a value that is never used: "bus3" warning 204: symbol is assigned a value that is never used: "bus4" warning 204: symbol is assigned a value that is never used: "bus5" warning 204: symbol is assigned a value that is never used: "bus6" mai e vreun loc de definire sau ce :-?? ca habar nu am :(
  7. aa pai sus sub define adica ceva mai jos sunt astea : [pawn]new bus1; new bus2; [/pawn] si ca sa adaug inca un bus bag sus acolo : new bus3; si jos acolo unde sunt ele bag : [pawn]bus3 = AddStaticVehicleEx(431,1182.1,-1795.9,13.1,0.0, -1, -1, 30000);[/pawn] ?
  8. Am de exemplu bus driver si farmer , la care vreau sa le adaug niste masini , la bus sunt 2 busuri si la farm sunt 4 combine , si eu vreau sa fac la farm cam 10 tractoare si la bus tot 10.. si nu stiu cum , cele de civil stiu cum se fac dar astea nu stiu.. cine ma poate ajuta va rog ? liniile masinilor in gm (BUS) : [pawn] bus1 = AddStaticVehicleEx(431,1172.5,-1795.5,13.1,0.0, -1, -1, 30000); // Bus 59 bus2 = AddStaticVehicleEx(431,1182.1,-1795.9,13.1,0.0, -1, -1, 30000); // Bus 60[/pawn] (FARM) : [pawn] AddStaticVehicleEx(531,-387.4058,-1476.6927,26.7035,265.6719,0,0,30000); // Harvest 155 AddStaticVehicleEx(531,-382.8609,-1465.2964,26.7162,262.4081,0,0,30000); // Harvest 156 AddStaticVehicleEx(531,-392.8095,-1487.2607,26.3314,268.0157,0,0,30000); // Harvest 157 AddStaticVehicleEx(531,-399.6307,-1500.4774,25.4502,265.1973,0,0,30000); // Harvest 158[/pawn]
  9. si e sigur 100% ca merge ? ca am incercat tot cu picker dar era selecatat samp si inainte baga un 0x si inca 2 cifre si na la html sunt mai putine .. nu stiam asta .. incerc acum si revin cu edit :)
  10. De exemplu am un 3DText simplu : Create3DTextLabel("Tasteaza /healme pentru a iti lua viata.", 0xFF8900FF , 1173.2563,-1323.3102,15.3943, 20.0,0,0); //Healme Spital LS (scris simplu portocaliu tot textul) si eu doresc sa imi scrie asa : Tasteaza /healme pentru a iti lua viata. (scris combinat cu comanda rosie si restul lime green si nu stiu cum sa fac sa combin culorile pe un 3DText) Sa ma ajute cineva care stie va rog .. :)
  11. Am rezolvat . Era toata chestia ca nu stersesem FS cu 3DText era un fs ce faceai 3dtext ingame si nu se salva , de aceea bloca accesul in gm sa faci .. multumesc oricum celor care s-au straduit sa ma ajute ! PUTETI DA TC !
  12. este pus in gm si este pus si la OnGameModeInit
×
×
  • 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.