16.12.2014, 00:35
Hi Allss. I Maked Unban CmD But Not Change Banned Player [pBanned] = 1 To [pBanned] = 0 In My User.ini At My Scriptfiles.... (( IM using Y_INI ))
THIs Is My CoDe:
Thats My User.ini File Example: (Adress: \scriptfiles\Mymode\Users
THIs Is My CoDe:
Код HTML:
if(pInfo[playerid][pLogged] == 1) { new id, string[128], sendername[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], targetid; if(pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED,"You are not authorized to use this command"); else if(sscanf(params,"u", id)) return SendClientMessage(playerid, COLOR_GREY,"USAGE: /unban [playername]"); else { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(id, name, sizeof(name)); format(string, sizeof(string),"%s has been unbanned by admin %s", name, sendername); SendClientMessage(playerid,-1,string); pInfo[targetid][pBanned] = 0; } }
Код HTML:
[data] pPassword = BC16675CC5BDSFGHEDG55B062244E6E94525D311BE37CDEE408EBA663E5GFDD8BA43724BA6EBE9031116C513562439EBEBDD5EA4B6E5FE pXP = 0 pKills = 0 pDeaths = 1 pRank = 0 pEvac = 0 pAdminLevel = 10 pAdminDuty = 0 pVipLevel = 0 pHour = 0 pMin = 0 pSec = 27 pMapsPlayed = 1 pCoins = 0 pIP = 00.000.00.000 pBanned = 1 <<<<<<<<<<<<<<<<<< Thats Not Set To pBanned = 0 gLeader = 0 gMember = 0