Unban and Offban
#1

How to set "Ban=1" or "Ban=0" to offline player?? Using classic fwrite
...
Ban=0
Spawn=0
Pos_x=1692.2
Pos_y=-2237.7
Pos_z=14.6
CarLic=0
FlyLic=0
BoatLic=0
FishLic=0
...

when i using dini_IntSet, then my password does not match
pls help how to do that...
sry for bad English
Reply
#2

Try this
Reply
#3

This can not, again, does not recognize password
Reply
#4

BUMP Help someone pls pls :/
Reply
#5

First of all, retreive all of the stats into variables, and then change the value of ban variable to 1 and the rewrite it again.
Heres an example:

pawn Код:
// Open your file

new
    kills,
    deaths,
    score,
    ban,
    string[129];
   
fread(file, string);
sscanf(string, "dddd", kills, deaths, score, ban);

ban = 1;

format(string, sizeof(string), "%d %d %d %d", kills, deaths, score, ban);
fwrite(file, string);

fclose(file);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)