Jump to content

andy47

Membru
  • Posts

    519
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by andy47

  1. Pai mai sus ti-am spus si de ttext si de tttext . Noapte buna ! Puteti da lock la topic . Problema rezolvata !
  2. Nu le vad posteazale liniile alea a 50 de mii si ceva .
  3. Acelea sunt alte lini. Posteazale .
  4. andy47

    Problema

    Posteaza OnPlayerGiveDamage si OnPlayerUpdate .
  5. Pai trebuie sa maresti marimea stringurilor ma refer la acestea : new ttext[10]; new tttext[10]; Inloc de 10 pune si tu 128 maxim . Astept raspuns .
  6. Pai din cate am vazut eu trebuie sa stergi : if(Goto[plo] == 1) { si } else { SendClientMessage(playerid, COLOR_GRAD1, "[Anti-Abuz] Acel player nu dat ajutor sau report "); } de la comanda /goto si la /get la fel . Eu ti-am dat comenzile cu aceste linii sterse dar nu stiu poate am sters eu ceva deaiurea mai stergele si tu odata .
  7. Incearca asta: case DIALOG_LOGIN: { if ( !response ) return Kick ( playerid ); if( response ) { if(!strcmp(inputtext, PlayerInfo[playerid][pPass], false)) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]); ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COLOR_WHITE"Succes!",""COLOR_GREEN"Cont creat cu succes!","Ok",""); } else { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COLOR_WHITE"Login",""COLOR_RED"Parola introdusa gresit.\n"COLOR_WHITE"Tasteaza-ti parola pentru a te loga.","Login","Quit"); } return 1; } } } return 1; }
  8. andy47

    Rcon login

    Pai nah inloc de Co-Owner si Owner scri Admin si acuma cand esti logat ca rcon iti arata Owner .
  9. Nu stiu care-s liniile adica fiecare in parte care-i 6000 care-i 5000 sper ca intelegi . Posteaza cateva dintre ele .
  10. Mergi la linia aceasta PlayerData[playerid][pLevel] = 1; si acolo inloc de 1 inlocuiesti cu cat vrei sa-i dai tu levelul de exemplu cum ai zis tu sa-i dea level 3 PlayerData[playerid][pLevel] = 3; si pentru bani mergi la linia aceasta GivePlayerCash(playerid, 1000); si inlocuieste tu 1000 cu cati bani vrei sa-i dai de exemplu 1 milion cum ai mentionat tu mai sus : GivePlayerCash(playerid, 1000000); Vezi ca doar in callbackul OnPlayerLogin sa le modifica nu in alta parte . Bafta ! ;)
  11. Am vazut ca se implica Mafia. si am zis sa nu ma bag ...
  12. Inlocuieste INI_WriteInt(File,"Password",udb_hash(inputtext)); cu INI_WriteInt(File,"Password",inputtext); Nu prea e corect sa vezi tu parolele la jucatori .
  13. andy47

    Rcon login

    Nu am spus sa stergi OnPlayerText ....
  14. Acel "[" apare de la forum cand scri "[]" poftim puneo asta : dcmd_setplevel(playerid, params[])//Set a player level { new amount; if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, 0xFF0000AA, "{FF0000}[ERROR]{FFFFFF}Usage: /setplevel [PlayerID] [pLevel]"); SetPlayerLevel(giveplayerid, amount); return 1; }
  15. Acea problema iti da deoarece credca am sters eu o acolada in plus verifica tu si adaugo.
  16. Pai nu credca ai definit "playerid" . Posteaza toata comanda sau tot callbackul unde ai pus tu acea linie .
  17. dcmd_setplevel(playerid, params[])//Set a player level { new amount; if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, 0xFF0000AA, "{FF0000}[ERROR]{FFFFFF}Usage: /setplevel [PlayerID] [pLevel]"); SetPlayerLevel(giveplayerid, amount); return 1; } In fata la sscanf tu aveai "!" si nu trebuia sa fie acolo si tu la parametri sscanf aveai "dd" "d" inseamna un numar deci nu puteai sa dai /setplevel .ANdy47. 23 . Parametrul "u" este folosit pentru UserName/ID .
  18. Incearca comenzile acestea . /goto if(strcmp(cmd, "/goto", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /goto [playerid/numejucator]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1) { if(Spectate[playerid] != 255) { Spectate[playerid] = 256; } GetPlayerPos(plo, plocx, plocy, plocz); if(PlayerData[plo][pInt] > 0) { SetPlayerInterior(playerid,PlayerData[plo][pInt]); PlayerData[playerid][pInt] = PlayerData[plo][pInt]; PlayerData[playerid][pLocal] = PlayerData[plo][pLocal]; } if(PlayerData[playerid][pInt] == 0) { SetPlayerInterior(playerid,0); } if(plocz > 530.0 && PlayerData[plo][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(playerid,1); PlayerData[playerid][pInt] = 1; } if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); } SendClientMessage(playerid, COLOR_GRAD1, " Ai fost teleportat"); SetPlayerInterior(playerid, GetPlayerInterior(plo)); //Goto[plo] = 0; SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(plo)); } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu ai rangul administrativ necesar!"); } } } else { format(string, sizeof(string), " %d nu este conectat.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } } return 1; } si /get if(strcmp(cmd, "/gethere", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendUsage(playerid,"/gethere [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1) { GetPlayerPos(playerid, plocx, plocy, plocz); SetPlayerInterior(plo,GetPlayerInterior(playerid)); PlayerData[plo][pInt] = GetPlayerInterior(playerid); PlayerData[plo][pLocal] = PlayerData[playerid][pLocal]; if(PlayerData[playerid][pInt] == 0) { SetPlayerInterior(plo,0); } if(plocz > 930.0 && PlayerData[playerid][pInt] == 0) { SetPlayerInterior(plo,1); PlayerData[plo][pInt] = 1; } if (GetPlayerState(plo) == 2) { new tmpcar = GetPlayerVehicleID(plo); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(plo,plocx,plocy+2, plocz); } SendClientMessage(plo, COLOR_LIGHTGREEN, "Ai fost teleportat cu succes!"); foreach(Player, i) { if(PlayerData[i][pAdmin] >= 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(plo, giveplayer,sizeof(giveplayer)); format(string, sizeof(string), "{C8D4D4}Adm{DB8E12}Warning:{FFFFFF} Admin %s l-a teleportat pe %s.", sendername,giveplayer); SendClientMessage(i, COLOR_LIGHTRED, string); } } } else { SendError(playerid,cmd); } } } else { format(string, sizeof(string), "%d nu este conectat.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }
  19. Incearca asta : CMD:setpassword( playerid, params[ ] ) { LevelCheck( playerid, 6 ); new Player[ 24 ], NewPass[ 25 ]; if ( sscanf( params, "s[24]s[25]", Player, NewPass ) ) return SendClientMessage( playerid, COLOR_BLUE, "Foloseste: {33CCFF}/setpassword [Numele jucatorului] [Parola noua]" ); if ( strlen( NewPass ) < 6 || strlen( NewPass ) > 24 ) return SendError( playerid, "Lungimea parolei invalida!" ); if ( strlen( Player ) < 6 || strlen( Player ) > 24 ) return SendError( playerid, "Lungimea numelui invalida!" ); mysql_real_escape_string( NewPass, NewPass ); new Buf[ 129 ]; WP_Hash( Buf, 129, NewPass ); format( gsQuery, 512, "UPDATE `Accounts` SET `Password` = '%s' WHERE `Name` = '%s'", Buf, Player ); mysql_function_query( g_Handle, gsQuery, false, "", "" ); FormatLog( "Set_PasswordLog", "%s have set the %s password to %s (Hash: %s)", PlayerName( playerid ), Player, NewPass, Buf ); PlayerPlaySound( playerid, 1057, 0.0, 0.0, 0.0 ); FormatMSG( playerid, COLOR_RED, "I-ai setat lui %s parola %s ( Hash: %s ) !", Player, NewPass, Buf ); return ( 1 ); }
  20. andy47

    Problema

    Problema aceasta credca vine din alta parte . Posteaza OnGamemodeInit .
  21. Pai prin "nu-mi apare nimic" cred ca te referi ca nu-ti apare nimic in chat . Trebuie sa adaugi SendClientMessage-uri ca sa-ti apara in chat . http://wiki.sa-mp.com/wiki/SendClientMessage De curiozitate sa nu spui ca vorbesc prosti adauga la functia SetPlayerLevel : SendClientMessage(playerid,-1,".ANdy47. a avut dreptate");
  22. Scuze imi cer mii de scuze chiar nu mi-am dat seama . Inlocuieste new aGoPaint; cu new aGoPaint[MAX_PLAYERS];
  23. andy47

    Rcon login

    Pai mergi la OnPlayerText si vezi acolo ca ai numele variabilei tale care o folosesti pentru admin egala cu 12 si schimbi "Owner" in "Admin" sau mai simplu dai CTRL+F si cauta Owner si gasesti tu acolo . Daca nu te descurci posteaza OnPlayerText .
×
×
  • 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.