26.01.2015, 12:53
works fine at all,just that.it is happening to you?or not?
all the codes
http://pastebin.com/9127jckE
part of it.
all the codes
http://pastebin.com/9127jckE
part of it.
pawn Код:
stock IsPlayerLVIP(playerid)
{
new name[MAX_PLAYER_NAME];
new file[256], tmp, tmp2;
GetPlayerName(playerid, name, sizeof(name));
format(file,256,"/eAdmin/Accounts/%s.sav",udb_encode(name));
tmp = dini_Int(file,"AccountType");
tmp2 = dini_Int(file,"loggedin");
if( (IsPlayerConnected(playerid)) && (tmp > 0) && (tmp2 == 1)) return true;
else return false;
}
stock IsPlayerVIPLevel(playerid, level)
{
new name[MAX_PLAYER_NAME];
new file[256], tmp, tmp2;
GetPlayerName(playerid, name, sizeof(name));
format(file,256,"/eAdmin/Accounts/%s.sav",udb_encode(name));
tmp = dini_Int(file,"AccountType");
tmp2 = dini_Int(file,"loggedin");
if( (IsPlayerConnected(playerid)) && (tmp >= level) && (tmp2 != 0)) return true;
else return false;
}
}