Jump to content

Mark.W

Membru
  • Posts

    30
  • Joined

  • Last visited

    Never

Mark.W's Achievements

Explorer

Explorer (4/14)

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

Recent Badges

0

Reputation

  1. Foloseste asta: http://wiki.sa-mp.com/wiki/UsePlayerPedAnims
  2. Salut. Probabil ca este tarziu si nu-mi dau seama sau nu stiu cum sa o fac sa mearga. Ori chiar amandoua. Cert este ca am o problema cu salvarea datelor jucatorului la deconectare si va cer ajutorul. La OnPlayerDisconnect am asa: public OnPlayerDisconnect(playerid, reason) { new Float:x, Float:y, Float:z, Float:rot; GetPlayerPos(playerid, Float:x, Float:y, Float:z); GetPlayerFacingAngle(playerid, Float:rot); SetPVarFloat(playerid, "Money", GetPlayerMoney(playerid)); if(reason == 0) { SetPVarFloat(playerid, "loc_X", Float:x); SetPVarFloat(playerid, "loc_Y", Float:y); SetPVarFloat(playerid, "loc_Z", Float:z); SetPVarFloat(playerid, "loc_angle", Float:rot); return 1; } else { if(GetPVarInt(playerid, "last_pos_spawn" )== 1) { SetPVarFloat(playerid, "loc_X", Float:x); SetPVarFloat(playerid, "loc_Y", Float:y); SetPVarFloat(playerid, "loc_Z", Float:z); SetPVarFloat(playerid, "loc_angle", Float:rot); return 1; } else if(GetPVarInt(playerid, "has_rented_h") == 0) { SetPVarFloat(playerid, "loc_X", Float:x); SetPVarFloat(playerid, "loc_Y", Float:y); SetPVarFloat(playerid, "loc_Z", Float:z); SetPVarFloat(playerid, "loc_angle", Float:rot); return 1; } } // save data - !!!!! MUST BE LAST ONE !!!!! SavePlayerData(playerid); return 1; } Iar functia SavePlayerData(playerid) este asa: public SavePlayerData(playerid) { new pName[MAX_PLAYER_NAME], file[128], inventory[128]; GetPlayerName(playerid, pName, sizeof(pName)); format(file, sizeof(file), "/Accounts/%s.ini", pName); format(inventory, sizeof(inventory), "/Accounts/%s_inv.ini", pName); // stats dini_IntSet(file, "XP", GetPVarInt(playerid, "XP")); dini_FloatSet(file, "Money", GetPVarFloat(playerid, "Money")); dini_FloatSet(file, "BankAcc", GetPVarFloat(playerid, "BankAcc")); dini_IntSet(file, "Level", GetPVarInt(playerid, "Level")); dini_IntSet(file, "AdminLevel", GetPVarInt(playerid, "AdminLevel")); dini_Set(file, "Name", pName); // password doesn`t save! dini_FloatSet(file, "loc_X", GetPVarFloat(playerid, "loc_X")); dini_FloatSet(file, "loc_Y", GetPVarFloat(playerid, "loc_Y")); dini_FloatSet(file, "loc_Z", GetPVarFloat(playerid, "loc_Z")); dini_FloatSet(file, "loc_angle", GetPVarFloat(playerid, "loc_angle")); dini_IntSet(file, "ooc_status", GetPVarInt(playerid, "ooc_status")); dini_IntSet(file, "pm_status", GetPVarInt(playerid, "pm_status")); dini_IntSet(file, "Phone_#", GetPVarInt(playerid, "Phone_#")); dini_IntSet(file, "Phone_Credit", GetPVarInt(playerid, "Phone_Credit")); dini_IntSet(file, "has_rented_h", GetPVarInt(playerid, "has_rented_h")); dini_IntSet(file, "last_pos_spawn", GetPVarInt(playerid, "last_pos_spawn")); // inventory GetPVarString(playerid, "item_1", InvItem1, sizeof(InvItem1)); GetPVarString(playerid, "item_2", InvItem2, sizeof(InvItem2)); GetPVarString(playerid, "item_3", InvItem3, sizeof(InvItem3)); GetPVarString(playerid, "item_4", InvItem4, sizeof(InvItem4)); GetPVarString(playerid, "item_5", InvItem5, sizeof(InvItem5)); GetPVarString(playerid, "item_6", InvItem6, sizeof(InvItem6)); GetPVarString(playerid, "item_7", InvItem7, sizeof(InvItem7)); GetPVarString(playerid, "item_8", InvItem8, sizeof(InvItem8)); GetPVarString(playerid, "item_9", InvItem9, sizeof(InvItem9)); GetPVarString(playerid, "item_10", InvItem10, sizeof(InvItem10)); dini_Set(inventory, "item_1", InvItem1); dini_Set(inventory, "item_2", InvItem2); dini_Set(inventory, "item_3", InvItem3); dini_Set(inventory, "item_4", InvItem4); dini_Set(inventory, "item_5", InvItem5); dini_Set(inventory, "item_6", InvItem6); dini_Set(inventory, "item_7", InvItem7); dini_Set(inventory, "item_8", InvItem8); dini_Set(inventory, "item_9", InvItem9); dini_Set(inventory, "item_10", InvItem10); return 1; } Nu stiu ce are de nu merge dar pe mine pur si simplu ma depaseste. Poate voi aveti ceva mai mult noroc. Multzam.
  3. Si eu sunt pe Romtelecom acasa si am aceeasi problema. Nu pot face port forwarding cu modemurile lor. Tu ai de la Romtelecom sau RDS?
  4. Ai facut forward la acea functie? Ai definit-o?
  5. Dute in START > Run si foloseste comanda 'ipconfig' si apoi foloseste IP-ul de la Default Gateway ca sa te conectezi la router. Daca atunci cand folosesti comanda 'ipconfig' iti apare o fereastra neagra si iti dispare imediat, fa un screen cu PrintScreen si apoi Paint. Anunta-ne daca merge.
  6. Mark.W

    O intrebare

    Adauga in callback-ul OnGameModeInit() linia asta: ShowPlayerMarkers(1);
  7. Mark.W

    Comanda

    Pai, normal ca la new cmds nu apare pentru ca trebuie sa adaugi tu. Eu nu am de unde sa stiu exact ce variable le ai definite si care nu. Am descarcat de pe net LAdmin 2.2 si m-am uitat pe acolo. Am presupus ca stii si tu sa rezolvi variabilele lipsa.
  8. Mark.W

    o problema

    La ce semn galben te referi? In joc? Pe un anumit script?
  9. Mark.W

    Comanda

    Uite aici. Daca are ceva erori fa un reply cu ele ca nu am testat comanda. if(strcmp(cmd, "/vips", true) == 0) { new cout=0; SendClientMessage(playerid, green, "________________________________________"); for(new i=0; i<MAX_PLAYER; i++) { if(IsPlayerConnected(i)) { GetPlayerName(i, adminname, sizeof(adminname)); format(string, 256, "VIP: %s [ID %d]", adminname,i); count++; } } if(count == 0) SendClientMessage(playerid, blue, "Found no VIP`s online"); SendClientMessage(playerid, green, "________________________________________"); return 1; }
  10. Din cate stiu nu poti pune o astfel de parola.
  11. Mark.W

    Dialog ??

    Folosesti OnDialogResponse ca sa vezi ce a fost selectat din primul dialog si apoi ShowPlayerDialog ca sa ii arati noul dialog.
  12. Avem nevoie si de asa ceva.
  13. Windows Live Movie Maker. Este si gratis.
×
×
  • 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.