Jump to content

stefanel994

Membru
  • Posts

    113
  • Joined

  • Last visited

    Never

Everything posted by stefanel994

  1. Cum fac si cand un player se inregistreaza pe server acolo la intrebari gen unde vrei sa fii spawnat si astea sa nu mai apara scrisu si sa fie in dialoguri?
  2. bravo :X:X de cand cautam :X
  3. Am o problema de tot rahatu .... am la /heal comanda asta //-----------------------------------[HEAL]------------------------------------------------------------------------- if(strcmp(cmd, "/heal", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); GetPlayerName(playerid, sendername, sizeof(sendername)); new location = PlayerInfo[playerid][pLocal]; if(!strlen(tmp)) { if(location != 255) { if(location < 99) { if(HouseInfo[location][hArm] == 1 && IsACop(playerid)) { format(string, sizeof(string), "* %s puts on body armour.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); TogglePlayerControllable(playerid, 0); GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]); Unspec[playerid][sPint] = PlayerInfo[playerid][pInt]; Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal]; SetPlayerPos(playerid,1527.5,-12.1,1002.0); PlayerInfo[playerid][pLocal] = 255; SetPlayerInterior(playerid,99); Spectate[playerid] = 257; } else { format(string, sizeof(string), "This place does not have armour upgrades."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } if(HouseInfo[location][hHel] == 1) { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if ( tempheal < 100.0) { SetPlayerHealth(playerid,100.0); PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0); format(string, sizeof(string), "You have been healed to 100 health."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } else { SendClientMessage(playerid, TEAM_GREEN_COLOR,"You are already healed to 100."); } } else { format(string, sizeof(string), "This place does not have healing upgrades."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } return 1; } else if(location == 101)//Restaurant { new Float:tempheal; GetPlayerHealth(playerid,tempheal); if ( tempheal < 100.0) { SetPlayerHealth(playerid,100.0); PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0); format(string, sizeof(string), "You have been healed to 100 health."); SendClientMessage(playerid, TEAM_GREEN_COLOR,string); } else { SendClientMessage(playerid, TEAM_GREEN_COLOR,"You are already healed to 100."); } } else if(location == 102 && IsACop(playerid))//Police Armoury { SetPlayerHealth(playerid,100.0); format(string, sizeof(string), "* %s puts on body armour.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); TogglePlayerControllable(playerid, 0); GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]); Unspec[playerid][sPint] = PlayerInfo[playerid][pInt]; Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal]; SetPlayerPos(playerid,1527.5,-12.1,1002.0); PlayerInfo[playerid][pLocal] = 255; SetPlayerInterior(playerid,99); Spectate[playerid] = 257; } } else { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /heal [playerid/PartOfName] [price]"); return 1; } } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /heal [playerid/PartOfName] [price]"); return 1; } moneys = strval(tmp); if(moneys < 1 || moneys > 1000) { SendClientMessage(playerid, COLOR_GREY, " Healing price not below 1 or above 1000 !"); return 1; } if (giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GRAD1, " You can not heal yourself!"); return 1; } if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new giveambu = GetPlayerVehicleID(giveplayerid); new playambu = GetPlayerVehicleID(playerid); if(gTeam[playerid] == TEAM_CYAN||PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4)//model { if (IsAnAmbulance(playambu) && playambu == giveambu) { new Float:tempheal; GetPlayerHealth(giveplayerid,tempheal); if(tempheal >= 100.0) { SendClientMessage(playerid, TEAM_GREEN_COLOR," That person is fully healed."); return 1; } format(string, sizeof(string), "~y~You healed ~n~~w~%s~n~~g~$%d", giveplayer,moneys); GameTextForPlayer(playerid, string, 5000, 1); GivePlayerMoney(playerid,moneys); GivePlayerMoney(giveplayerid,-moneys); new hp = 0; if(PlayerInfo[playerid][pPainPerk] > 0) { hp = 20 * PlayerInfo[playerid][pPainPerk]; hp += 100; SetPlayerHealth(giveplayerid, hp); } else { hp = 100; SetPlayerHealth(giveplayerid, 100); } PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0); PlayerPlaySound(giveplayerid, 1150, 0.0, 0.0, 0.0); format(string, sizeof(string), "You have been healed to %d health -$%d",hp,moneys); SendClientMessage(giveplayerid, TEAM_GREEN_COLOR,string); if(STDPlayer[giveplayerid] > 0) { STDPlayer[giveplayerid] = 0; SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* You are no longer infected with a STD anymore because of the Medics help !"); } } else { SendClientMessage(playerid, COLOR_GRAD1, " One of you is not in the Ambulance / Chopper !"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !"); return 1; } } } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } De cate ori o folosesc imi inchide serverul .... Din ce cauza?
  4. din ce ati explicat voi mai sus am inteles ca nu iti merge pluginu mysql cand pui sv-u pe linux . Daca e asa ai pus in server.cfg mysql.so ?
  5. pai pe host ai linux?
  6. am facut cum ai spus tu si vad ca nu au mai aparut probleme ms mult .
  7. serverul momentan e la mn pe pc ptr teste dar si pe host se intampla la fel :)
  8. pai iddeea e ca eu imi fac primu acc pe server la mn in pc tot tutorial etc .. merge perfect toata treaba dupa inchid serveru intru in scriptfilles in ini al userului modific la admin level din 0 in 1339 si cand repornesc iar serverul la accountul respectiv merge orice parola.
  9. Deci am o problema si nu imi pot da seama din cauza la ce e..... Ma inregistrez pe sv etc totul merge bn daca intru in .ini al unui player si ii modific la adminlevel din 0 in 1339 se buguieste(adica te poti loga pe accountul respectiv cu orice parola) parola la accountul respectiv , Din ce cauza?
  10. Ce trebuie sa modific intr-un gamemode sa aiba mersu original de godfather?
  11. pune liniile (4806) 6148 6766 11529) 22585 aici si tem rezolv eu &_&
  12. Spuneti-mi si mie un house sistem bun sa aiba si house car va rog frumos.
  13. Am o problema am un mod gf am facut o casa imi apare pickup de buy etc dar nu imi apare masina am pus coordonatele al spawn am modificat cu nr de masini etc si nu apare.
  14. am si eu o problema am facut o casa imi apare pickupul tot dar nu apare masina dc?
  15. am facut comanda asta pentru unban if(strcmp(cmd, "/unlockaccount", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 3) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /unlockaccount [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pBlocat] == 1) { PlayerInfo[giveplayerid][pBlocat] = 0; TogglePlayerControllable(giveplayerid, 1); SendClientMessage(playerid, COLOR_YELLOW, "Account unlocked succesfuly."); } } } } else { SendClientMessage(playerid, COLOR_GRAD1, "You must be a level 3 admin to do this command."); } return 1; } cand dau /unlockaccount si numele palyerului caruia vreau sa ii dau unban nu apare nimic daca scriu doar /unlockaccount apare use /unlockaccount playername/ID , oare de ce? help va rog.
  16. sterge-ti topicul am rezolvat xD
  17. Am facut derby destructionu la arena din lv dar mai am de facut o chestie si nu am idee cum s-ar putea face am nevoie ca in masinile din arena cand un player se urca in ele sa ii dea freeze si sa il tina freezed in arena adica sa nu se poate misca cu masina pana cand eu nu dau /startderby
  18. Am o intrebare ce editor as putea folosi aici in loc de dini dini_IntSet(string, "Blocat", 0); ? sa schimbe in fisierul userului caruia vreau sai dau unban sa fie din blocat 1 in blocat 0 xD
  19. cu ce sa il schimb? ce sa pun in locu lui?
  20. pai da dar imi schimba si parola la account cand dau unban. dar nu stiu de ce....
  21. Uite cum am //-----------------------------Unban------------------------------------------- if(strcmp(cmd, "/unban", true)==0) { if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1337) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xA8A8FFFF, "USAGE: /unban [PlayerName]"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "AdmWarning: %s has unbanned %s", sendername,tmp); ABroadCast(COLOR_YELLOW,string,1); format(string, 256, "AdmWarning: %s has unbanned %s", sendername,tmp); format(string,sizeof(string),"%s.ini",tmp); dini_IntSet(string, "Blocat", 0); SendClientMessage(playerid, COLOR_WHITE, "Player Unbanned"); } return 1; } cand dau unban in useri din formatu asta al datelor ---------------------------------------------- mi Se pune intro linie asa dar la pblocat imi modifica din 1 in 0 mai trebuie ceva pus in comanda dar nustiu ce.... daca ma poti ajuta ... | | | | |
×
×
  • 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.