Jump to content

WillJones

Membru
  • Posts

    13
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by WillJones

  1. Cum pot face in asa fel incat sa nu mai poata da adminii de nivel 1 /makeadmin? Vreau doar adminii 5+ sa o poata faca. Ziceti-mi va rog clar pas cu pas cum trebuie sa fac sa rezolv ca nu le prea am cu limbajul pawno... Is asa la inceput si vreau sa invat. CMD:makeadmin(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 6 || EstiFondator(playerid)) { new id,adminlevel,sendername[30],giveplayer[30],string[200],escape[200]; if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, COLOR_WHITE, "Scrie: /makeadmin <Name/Playerid> <Admin Level>"); if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED, "Nu esti autorizat sa folosesti comanda."); if(PlayerInfo[id][pAdmin] >= 6 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti modifica admin level-ul unui admin 6+!."); if(adminlevel > 4 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only founders can make admin higher than 4."); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { GetPlayerName(id, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); printf("({FF6347}AdminStaff{FFFFFF}) %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel); format(string, sizeof(string), "You've been promoted to level %d admin, by %s.", adminlevel, sendername); SendClientMessage(id, COLOR_WHITE, string); format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,adminlevel); SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "* Admin %s set %s's admin level to %d.", sendername,giveplayer,adminlevel); ABroadCast(COLOR_ADMCHAT,string,1); HLChat(COLOR_ADMCHAT,string); mysql_real_escape_string(string, escape); PlayerInfo[id][pAdmin] = adminlevel; if(adminlevel == 0) { AdminDuty[id] = 0; } new str[256]; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Admin`='%d' WHERE `name`='%s'",PlayerInfo[id][pAdmin],PlayerInfo[id][pNormalName]); mysql_tquery(SQL,str,"",""); mysql_format(SQL,str, sizeof(str), "INSERT INTO staff_logs (`text`) VALUES ('%s')", escape); mysql_tquery(SQL,str,"",""); } } else { SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected."); } } else { SendClientMessage(playerid, COLOR_LIGHTGREEN3, "You need admin 6+ to use this."); } } return 1; }
  2. Ba, gamemodu ii super smecher, ii enervant skinul ala ca si daca esti lider undeva gen, tot ai skinul ala de start, nu poti scapa de el De la mine ai un +rep
  3. E hai, nu fi trist, fi bucuros! Ai acordat ajutorul cuiva. Cum sa et enervezi-intristezi pe asa ceva :)?
  4. Care-i parola serverului? mi-am dat admin 7 din baza de date da imi da sa scriu ceva parola de la server dupa ce m-am logat cu parola mea.
  5. Imi place prezentarea, voi veni imd cu un edit sa iti raportez posibilele buguri
  6. Comanda SQL: -- -- Salvarea datelor din tabel `users` -- INSERT INTO `users` (`id`, `name`, `password`, `Level`, `Admin`, `Helper`, `IP`, `Premium`, `Beta`, `Support`, `ConnectedTime`, `Registered`, `Sex`, `Age`, `Origin`, `Muted`, `MuteTime`, `Respect`, `Money`, `Bank`, `Crimes`, `Kills`, `Deaths`, `Arrested`, `WantedDeaths`, `Phonebook`, `WantedLevel`, `Fishes`, `Job`, `Paycheck`, `HeadValue`, `Jailed`, `JailTime`, `dm`, `dmp`, `dmt`, `dmpt`, `Materials`, `Drugs`, `Leader`, `Member`, `Rank`, `FWarn`, `FPunish`, `pHealth`, `Inter`, `Local`, `Team`, `Model`, `PhoneNr`, `PhoneCredits`, `House`, `Bizz`, `Pos_x`, `Pos_y`, `Pos_z`, `Rob`, `GunLicSuspend`, `CarLicSuspend`, `CarLicT`, `CarLic`, `FlyLicT`, `FlyLic`, `BoatLicT`, `BoatLic`, `FishLicT`, `FishLic`, `GunLicT`, `GunLic`, `PayDay`, `PayDayHad`, `Tutorial`, `Warnings`, `Rented`, `Fuel`, `WTalkie`, `Tow`, `Email`, `RegisterDate`, `lastOn`, `Victim`, `Status`, `HitT`, `Phone`, `Accused`, `Crime1`, `Crime2`, `Crime3`, `Fakea`, `HPoints`, `Languag[...] MySQL zice: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE IF NOT EXISTS `vehicles` ( `ID` int(11) NOT NULL AUTO_INCREMENT, ' at line 14 Cand pun SQL-ul. Cand intru sa ma inregistrez pe server, scriu parola, apoi scriu parola din nou si nu mi-o mai recunoaste. Bug la login si ceva erori la baza de date! Rezolva!
  7. Apreciez foarte mult munca depusa, si felul in care ai vrut sa iasa GM-ul in evidenta prin sisteme unice si factiuni mai dezolvatate. Insa, am o problema cu compilarea. C:\Users\Loci\Desktop\Briston GOV R39-3\gamemodes\briston.pwn(4166) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Loci\Desktop\Briston GOV R39-3\gamemodes\briston.pwn(4166) : error 029: invalid expression, assumed zero C:\Users\Loci\Desktop\Briston GOV R39-3\gamemodes\briston.pwn(4166) : error 017: undefined symbol "s" C:\Users\Loci\Desktop\Briston GOV R39-3\gamemodes\briston.pwn(4166) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Gen, o sa salvez .PWN pe mediafire si astept sa ma ajuti cu compilarea si instalarea lui. Linkul la fisier: https://www.mediafire.com/file/y29tfyk89uo18qr/Pro-Players.rar
×
×
  • 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.