-
Epic error on a mod
- IW4M - Revision 95
how do we use -gscfilesystem ?- [Help] Special Mod
So i do like self.filenum = openfile("playerlist.txt","append","-gscfilesystem"); ?? My problem is that for exemple in the description of some function , it says get arg from current line, or give numbers of arg in next line . so my question is for exemple , how i change line ? thanks for answering 1st edit : another question , if i append a file , will it be kept every time , or each time the server restart it'll be deleted ? will it be kept if there is a map rotation ? and a changing of mod ? .- [Help] Special Mod
Anyone ? :s Sorry for doublepost- [Help] unreachable code
I'm sorry then . If you want a random perk you can try this too : switch(randomint(16))//there is 16 perks <.< { case 1 ://SOH for exemple //do your unlock there case 2 : // ... //... case 16 : // last perk //... }- [Help] unreachable code
Hi, you want to change perks ? if yes then i think the easy-est way is to remoove perk from mod , and then add in your rank or wherever you want : self _clearPerks(); self maps\mp\perks\_perks::givePerk("specialty_fastsnipe"); // for exemple buh maybe i misunderstood yaw- [Help] Special Mod
Hi guys , I'm not an epic modder but i still did my own isnipe without copy paste xD with perk changer , fov changer , custom killstreaks ... A few days ago i decided to make a new feature , custom stuff for people connected X time . For that i need to store some XUID , and the number of connections in a file and after hours of searching i'm blocked there : my problem is that i need to search in the file , and with the function on ZeRoY's cod script ref (http://www.zeroy.com/script/), i'm kinda lost . i've wrote this : onplayerconnect(); { //normal stuff here self thread filestuff(); } filestuff() { if (self ishost()) { // i stock in filenum beause those function such as openfile fgetarg etc are working with file // number ( why ? idk either . -.-) filenum = openfile("playerlist.txt","read"); //open the file where is stored all guid //and number of connections . guid , connections. continue = true; while (continue) { id = fgetarg(filenum, 1);// search in GUID list until it match if (self.guid == id) { continue = false; // id matched with guid , no need to search anymore co = fgetarg(filenum,2); co++; fclose(filenum);//close file to open it in write mode filenum = openfile("playerlist.txt","write");// open in write mode fprintfields(filenum, id,co);//print new value } } } } 1.but i think it wont work since i dunno how to go to the next line in the file and how to delete previous value of co 2. i've just seen that i've one more error in my script : i need to do this for every player probably with for each players in level.players or something like that ,and keep the .txt only on the server side to prevent cheats . 3. it's a server , not private match , so i dont know really how i can make my function because if(self ishost() ) wont work if i'm not here . i need to do some test with the function to see if it works only on server side by default or all client side . 4. Tryed to just see if those commands work , mod wont load because i need developper access ? WTF ? i need help seriously guys - IW4M - Revision 95
Важная информация
Используя этот сайт, вы соглашаетесь Условия использования.