-
Posts
30 -
Joined
-
Last visited
-
Days Won
1
Mistokus last won the day on October 5 2018
Mistokus had the most liked content!
Profile Information
-
Sex
Masculin
-
In-game Name
Mistokus
-
Level of knowledge
Experimentat
Recent Profile Visitors
654 profile views
Mistokus's Achievements
-
Mistokus changed their profile photo
-
T/C Am rezolvat
-
M-am apucat de un nou gamemode, iar cand bag include sscanf2 imi da crash consola, adica se deschide si se inchide instant, daca mut pe sscanf normal nu merg comenzile. server_log este asta ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [18:36:51] [18:36:51] Server Plugins [18:36:51] -------------- [18:36:51] Loading plugin: mysql [18:36:51] >> plugin.mysql: R39-6 successfully loaded. [18:36:51] Loaded. [18:36:51] Loading plugin: streamer [18:36:51] *** Streamer Plugin v2.7.4 by Incognito loaded *** [18:36:51] Loaded. [18:36:51] Loading plugin: sscanf [18:36:51] [18:36:51] =============================== [18:36:51] sscanf plugin loaded. [18:36:51] Version: 2.8.2 [18:36:51] (c) 2012 Alex "Y_Less" Cole [18:36:51] =============================== [18:36:51] Loaded. [18:36:51] Loaded 3 plugins. [18:36:51] [18:36:51] Filterscripts [18:36:51] --------------- [18:36:51] Loaded 0 filterscripts.
-
Ms mult
-
Am si eu nevoie de Holding Studio pentru ca lucrez la un job de ciorditor de fier vechi si trebuie sa ii pun fiarele in mana. Din pacate link-ul de pe https://forum.sa-mp.com/showthread.php?t=182317 nu merge ma redirectioneaza altundeva, ma rog, nu asta e important. Daca aveti voi holding studio ati putea sa mi-l dati (pe un link sau atasat in comment). Dau +1, Multumesc!
-
Acest job se bazeaza pe urmarea checkpointurilor pentru a primi o suma de bani. El se instaleaza foarte simplu, tot ce e de facut este sa mutati fisierul descarcat in folderul "filterscripts" din folderul serverului iar apoi sa puneti asta la OnGamemodeInit in gamemode: SendRconCommand("loadfs AirTransporter"); Esista 3 nivele si anume: Beginner, advanced si professional dupa care veti primi si avionul. Mai jos aveti poze cu job-ul Mai jos sunt fisierele de downlaod AirTransporter.amx AirTransporter.pwn
-
Acces la comenzile /createcp si /createracecp direct din joc, memorandu-se in GAMEMODE/scriptfiles/Checkpoints.pwn. Acest FS este mai mult pentru cei lenesi (ca mine) care nu au chef sa stea sa faca fiecare cp in parte in map editor. Bafta, aici este link-ul. sau aici: http://www.mediafire.com/file/7gpxulh9y6d68er/CPMaker.amx/file
-
Propun infiintarea unui server de discord unde scripterii pot discuta/cere o parere, incepatorii pot cere ajutor, vanzare/cumparare gamemode-uri si sisteme si multe altele ce pot fi mai usor facute, unde sa fie si o sectiune "reclama servere" unde cei cu grade sa zicem isi pot face reclama la server.
-
T/C va rog, am rezolvat
-
Ss contorizeaza secunde ca apar si in /time deci... ms oricum
-
Toate celelalte variabile se modifica mai putin orele jucate. Ce pot face? Asta e script-ul de payday. COD: for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) if(ServerMinute == 0 && ServerSecond == 1) { new lvl = PlayerInfo[i][pLevel],pr = 1+PlayerInfo[i][pPremiumAcount],papagalll = 1+ParrotPuted[i],fpp = 1+PlayerInfo[i][pPremiumAcount]; new ppaa = 0+papagalll; new rp = 0+pr; new fp = 0+fpp; new rand = lvl*50 + random(50); new dobanda = rand*ppaa; PlayerInfo[i][pRP] += rp; PlayerInfo[i][pHours] += PlayerInfo[i][pSeconds]/3600; if(PlayerInfo[i][pLicence] > 0) { PlayerInfo[i][pLicence] -= 1; } if(PlayerInfo[i][pGLic] > 0) { PlayerInfo[i][pGLic] -= 1; } if(PlayerInfo[i][pPLic] > 0) { PlayerInfo[i][pPLic] -= 1; } if(PlayerInfo[i][pBLic] > 0) { PlayerInfo[i][pBLic] -= 1; } if(PlayerInfo[i][pRoll] < 50 && PlayerInfo[i][pSeconds] > 2200) { PlayerInfo[i][pRoll] += 10; } if(PlayerInfo[i][pGift] < 3 && SpecialWeek == 1 && PlayerInfo[i][pSeconds] > 1800) { PlayerInfo[i][pGift] += 1; } if(PlayerInfo[i][pFactionPunish] > 0) { PlayerInfo[i][pFactionPunish] -= fp; } UpdateProgressBar(i); PlayerInfo[i][pBankMoney] += dobanda; SCM(i, -1, "{9DFE80}------------------------------------- PayDay -------------------------------------"); SCMEx(i, -1, "Bank Money: +%s$ | Respect Points: +%d | Playing Hours: +%0.2f", FormatNumber(dobanda), rp, PlayerInfo[i][pSeconds]/3600); GameTextForPlayer(i, "~g~PAYDAY", 2000, 1); PlayerInfo[i][pSeconds] = 0; printf("Este ora %02d:%02d:%02d. Payday acordat!",ServerHour, ServerMinute, ServerSecond); } Cn rezolva are +1 de la mine
-
Salut! Astazi m-am gandit sa va incat cum se face un admin system. Sper sa va placa! Intai haideti sa definim variabila. #include <a_samp> #include <sscanf> enum pInfo { pAdmin, }; new PlayerInfo[MAX_PLAYERS][pInfo]; Acum haideti sa facem comanda de setare CMD:setadmin(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SCM(playerid, -1, AdminOnly); new alevel,str[128],ID; if(sscanf(params,"ui",ID,alevel)) return SendClientMessage(playerid,0xB3B3B3FF, "Syntax: {FFFFFF}/setadmin <playerid/name> <admin level>"); if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,0xB3B3B3FF, "{FF0000}ERROR: {FFFFFF}Utilizatorul nu este conectat."); if(ID == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!"); if(alevel > 7 || alevel < 0) return SendClientMessage(playerid,0xB3B3B3FF,"{FF0000}ERROR: {FFFFFF}Sunt valabile doar 7 nivele de admin!"); if(alevel == 0) { PlayerInfo[ID][pSelectColor] = 0; if(PlayerInfo[ID][pAdmin] == 0) return 1; format(str, sizeof(str), "%s te-a scos din functia de admin.", GetName(playerid)); SCM(ID, 0x00BFFFFF, str); format(str, sizeof(str), "%s l-a scos din functia de admin pe %s.", GetName(playerid), GetName(ID)); SendAdminMessage(0x00BFFFFF, str); SendHelperMessage(0x00BFFFFF, str); PlayerInfo[ID][pAdmin] = 0; StopFly(ID); UsedFly[ID] = 0; } if(alevel == 1) { if(PlayerInfo[ID][pAdmin] == 1) return 1; format(str, sizeof(str), "%s te-a promovat la functia de admin 1 (Trial Admin).", GetName(playerid)); SCM(ID, 0x00BFFFFF, str); format(str, sizeof(str), "%s l-a promovat pe %s la functia de admin 1 (Trial Admin).", GetName(playerid), GetName(ID)); SendAdminMessage(0x00BFFFFF, str); SendHelperMessage(0x00BFFFFF, str); PlayerInfo[ID][pAdmin] = 1; } if(alevel == 2) { if(PlayerInfo[ID][pAdmin] == 2) return 1; format(str, sizeof(str), "%s te-a promovat la functia de admin 2 (Junior Admin).", GetName(playerid)); SCM(ID, 0x00BFFFFF, str); format(str, sizeof(str), "%s l-a promovat pe %s la functia de admin 2 (Junior Admin).", GetName(playerid), GetName(ID)); SendAdminMessage(0x00BFFFFF, str); SendHelperMessage(0x00BFFFFF, str); PlayerInfo[ID][pAdmin] = 2; } if(alevel == 3) { if(PlayerInfo[ID][pAdmin] == 3) return 1; format(str, sizeof(str), "%s te-a promovat la functia de admin 3 (General Admin).", GetName(playerid)); SCM(ID, 0x00BFFFFF, str); format(str, sizeof(str), "%s l-a promovat pe %s la functia de admin 3 (General Admin).", GetName(playerid), GetName(ID)); SendAdminMessage(0x00BFFFFF, str); SendHelperMessage(0x00BFFFFF, str); PlayerInfo[ID][pAdmin] = 3; } if(alevel == 4) { if(PlayerInfo[ID][pAdmin] == 4) return 1; format(str, sizeof(str), "%s te-a promovat la functia de admin 4 (Head Admin).", GetName(playerid)); SCM(ID, 0x00BFFFFF, str); format(str, sizeof(str), "%s l-a promovat pe %s la functia de admin 4 (Head Admin).", GetName(playerid), GetName(ID)); SendAdminMessage(0x00BFFFFF, str); SendHelperMessage(0x00BFFFFF, str); PlayerInfo[ID][pAdmin] = 4; } if(alevel == 5) { if(PlayerInfo[ID][pAdmin] == 5) return 1; format(str, sizeof(str), "%s te-a promovat la functia de admin 5 (Lead Admin).", GetName(playerid)); SCM(ID, 0x00BFFFFF, str); format(str, sizeof(str), "%s l-a promovat pe %s la functia de admin 5 (Lead Admin).", GetName(playerid), GetName(ID)); SendAdminMessage(0x00BFFFFF, str); SendHelperMessage(0x00BFFFFF, str); PlayerInfo[ID][pAdmin] = 5; } if(alevel == 6) { if(PlayerInfo[ID][pAdmin] == 6) return 1; format(str, sizeof(str), "%s te-a promovat la functia de admin 6 (Co-Owner).", GetName(playerid)); SCM(ID, 0x00BFFFFF, str); format(str, sizeof(str), "%s l-a promovat pe %s la functia de admin 6 (Co-Owner).", GetName(playerid), GetName(ID)); SendAdminMessage(0x00BFFFFF, str); SendHelperMessage(0x00BFFFFF, str); PlayerInfo[ID][pAdmin] = 6; } if(alevel == 7) { if(PlayerInfo[ID][pAdmin] == 7) return 1; format(str, sizeof(str), "%s te-a promovat la functia de admin 7 (Owner/Scripter).", GetName(playerid)); SCM(ID, 0x00BFFFFF, str); format(str, sizeof(str), "%s l-a promovat pe %s la functia de admin 7 (Owner/Scripter).", GetName(playerid), GetName(ID)); SendAdminMessage(0x00BFFFFF, str); SendHelperMessage(0x00BFFFFF, str); PlayerInfo[ID][pAdmin] = 7; } return 1; } Si acum cateva comenzi. CMD:spawn(playerid, params[]) { new UserID, info[512], destinatar[MAX_PLAYER_NAME], nam[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, -1, AdminOnly); if(sscanf(params, "u", UserID)) return SCM(playerid, 0xB3B3B3FF, "Syntax: {FFFFFF}/spawn <playerid/name>"); if(PlayerInfo[UserID][pAdmin] > PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, -1, "Nu poti folosi comanda aceasta pe acel player."); if(!IsPlayerConnected(UserID)) return SendClientMessage(playerid,0xB3B3B3FF, "{FF0000}ERROR: {FFFFFF}Utilizatorul nu este conectat."); GetPlayerName(playerid, nam, sizeof(nam)); GetPlayerName(UserID, destinatar, sizeof(destinatar)); format(info, sizeof(info), "{FFFFFF}<{FF0000}AdminCMD{FFFFFF}> %s i-a acordat respawn lui %s.",nam, destinatar); SendAdminMessage(-1, info); SpawnPlayer(UserID); SetPlayerVirtualWorld(UserID, 0); SetPlayerInterior(UserID, 0); printf("%s has spawned %s.",nam,destinatar); return 1; } CMD:aheal(playerid, params[]) { new UserID, info[512], destinatar[MAX_PLAYER_NAME],nam[MAX_PLAYER_NAME]; if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, -1, AdminOnly); if(sscanf(params, "u", UserID)) return SCM(playerid, 0xB3B3B3FF, "Syntax: {FFFFFF}/aheal <playerid/name>"); if(PlayerInfo[UserID][pAdmin] > PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, -1, "Nu poti folosi comanda aceasta pe acel player."); if(!IsPlayerConnected(UserID)) return SendClientMessage(playerid,0xB3B3B3FF, "{FF0000}ERROR: {FFFFFF}Utilizatorul nu este conectat."); GetPlayerName(UserID, destinatar, sizeof(destinatar)); GetPlayerName(playerid, nam, sizeof(nam)); format(info, sizeof(info), "{FFFFFF}<{FF0000}AdminCMD{FFFFFF}> %s i-a acordat heal lui %s.",nam,destinatar); SendAdminMessage(-1, info); SetPlayerHealth(UserID, 100.0); printf("%s i-a acordat heal lui %s.",nam,destinatar); return 1; } Si asta a fost. Daca v-a fost util acest tutorial nu uitati de un +1.
-
copiezi ceea ce am scris eu acolo alea cu "CreateObject" si le pui la OnGamemodeInit
-
Intra pe fb in 10 min.