08.03.2012, 08:15
Hello, i wanna switch the registration system to Dialogs,
Includes
#include <a_samp>
#include <core>
#include <Dini>
#include <float>
#include <time>
#include <file>
#include <Foreach>
#include <Double-O-Objects>
Onplayerconnect
Onplayerdisconnect
Onplayerregister
Onplayerlogin
Onplayerdatasave
Includes
#include <a_samp>
#include <core>
#include <Dini>
#include <float>
#include <time>
#include <file>
#include <Foreach>
#include <Double-O-Objects>
Onplayerconnect
pawn Код:
public OnPlayerConnect(playerid)
{
LoggedTime[playerid] = 0;
new string[256];
gPlayerLogged[playerid] = 0;
gAdminLogged[playerid] = 0;
new plname[MAX_PLAYER_NAME],tmpvar;
GetPlayerName(playerid, plname, sizeof(plname));
if(!NameIsRP(plname))
{
SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: Your name is not acceptable.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Hint: your name must be in the format Firstname_Lastname.");
Kick(playerid); //yes, use Kick here because theres no data to save
return 1;
}
if(IsIPBanned(playerid)) {
if((BanInfo[tmpvar][BanInfoTS]-GetUnixTime())!=0) {
SendClientMessage(playerid,COLOR_YELLOW2,"You are currently banned. Please wait for this to expire");
SendClientMessage(playerid,COLOR_LIGHTRED,"If you feel this is a mistake post a appeal on http://projectstate.freeforums.org/");
tmpvar=PlayerInfo[playerid][pRank]; //just a reused variable
new numdays=(BanInfo[tmpvar][BanInfoTS]-GetUnixTime())/86400;
format(string,sizeof(string),"Your ban expires in %i day(s). Ban Reason: %s",numdays,BanInfo[tmpvar][BanInfoReason]);//just reused variables
SendClientMessage(playerid,COLOR_LIGHTRED,string);
Kick(playerid); //don't ban because if it expires they will be banned..
}
}
PlayerInfo[playerid][pCalledTutSay]=0;//this must be outside initplayer
InitPlayer(playerid);
SetPlayerColor(playerid,COLOR_GRAD2);
foreach (Player, i)
{
if(BlockPMPerson[playerid][i] == 1)
{
BlockPMPerson[playerid][i] = 0;
}
}
new icons = 0;
for(new h = 0; h < sizeof(IntInfo); h++)
{
if(IntInfo[h][iIcon] != 0)
{
SetPlayerMapIcon(playerid, icons, IntInfo[h][iEntrancex], IntInfo[h][iEntrancey], IntInfo[h][iEntrancez], IntInfo[h][iIconT], COLOR_YELLOW);
icons++;
}
}
SetPlayerMapIcon(playerid, icons, 1641.5096,-2241.4404,13.4949, 38, COLOR_YELLOW); // Spawn Point
icons++;
SetPlayerMapIcon(playerid, icons, 978.6165,-1255.9263,16.9510, 27, COLOR_YELLOW); // Modshop
icons++;
SetPlayerMapIcon(playerid, icons, 1041.3632,-1028.2789,32.1016, 27, COLOR_YELLOW); // Modshop
icons++;
SetPlayerMapIcon(playerid, icons, 2645.3433,-2038.6853,13.5500, 27, COLOR_YELLOW); // Modshop
icons++;
// SetPlayerMapIcon(playerid, icons, 1573.5973,-2351.7605,13.5547, 55, COLOR_YELLOW); // Portcar
// icons++;
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "users/%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
gPlayerAccount[playerid] = 1;
fclose(hFile);
}
else
{
gPlayerAccount[playerid] = 0;
}
return 1;
}
public ClearCrime(playerid)
{
//if (gdebug >= 1){printf("DEBUG ClearCrime(%d)", playerid);}
new string[MAX_PLAYER_NAME];
format(string, sizeof(string), "********");
strmid(PlayerCrime[playerid][pBplayer], string, 0, strlen(string), 255);
strmid(PlayerCrime[playerid][pVictim], string, 0, strlen(string), 255);
strmid(PlayerCrime[playerid][pAccusing], string, 0, strlen(string), 255);
strmid(PlayerCrime[playerid][pAccusedof], string, 0, strlen(string), 255);
return 1;
}
pawn Код:
pawn Код:
public OnPlayerDisconnect(playerid,reason)
{
if(gPlayerLogged[playerid] == 1)
{
new string[128];
new sendername[MAX_PLAYER_NAME];
new Float:armour;
new Float:health;
GetPlayerName(playerid, sendername, sizeof(sendername));
if(Hospitalized[playerid] == 0) {
GetPlayerWeaponData(playerid,0,PlayerInfo[playerid][pGun1],PlayerInfo[playerid][pAmmo1]);
GetPlayerWeaponData(playerid,1,PlayerInfo[playerid][pGun2],PlayerInfo[playerid][pAmmo2]);
GetPlayerWeaponData(playerid,2,PlayerInfo[playerid][pGun3],PlayerInfo[playerid][pAmmo3]);
GetPlayerWeaponData(playerid,3,PlayerInfo[playerid][pGun4],PlayerInfo[playerid][pAmmo4]);
GetPlayerWeaponData(playerid,4,PlayerInfo[playerid][pGun5],PlayerInfo[playerid][pAmmo5]);
GetPlayerWeaponData(playerid,5,PlayerInfo[playerid][pGun6],PlayerInfo[playerid][pAmmo6]);
GetPlayerWeaponData(playerid,6,PlayerInfo[playerid][pGun7],PlayerInfo[playerid][pAmmo7]);
GetPlayerWeaponData(playerid,7,PlayerInfo[playerid][pGun8],PlayerInfo[playerid][pAmmo8]);
GetPlayerWeaponData(playerid,8,PlayerInfo[playerid][pGun9],PlayerInfo[playerid][pAmmo9]);
GetPlayerWeaponData(playerid,9,PlayerInfo[playerid][pGun10],PlayerInfo[playerid][pAmmo10]);
GetPlayerWeaponData(playerid,10,PlayerInfo[playerid][pGun11],PlayerInfo[playerid][pAmmo11]);
GetPlayerWeaponData(playerid,11,PlayerInfo[playerid][pGun12],PlayerInfo[playerid][pAmmo12]);
GetPlayerWeaponData(playerid,12,PlayerInfo[playerid][pGun13],PlayerInfo[playerid][pAmmo13]);
}
if(PlayersChannel[playerid] < 999)
{
IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
}
switch(reason)
{
case 0: // Crashed
{
new world = GetPlayerVirtualWorld(playerid);
new interior = GetPlayerInterior(playerid);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
PlayerInfo[playerid][pPos_x] = x;
PlayerInfo[playerid][pPos_y] = y;
PlayerInfo[playerid][pPos_z] = z;
PlayerInfo[playerid][pWorld] = world;
PlayerInfo[playerid][pInt] = interior;
if(PlayerInfo[playerid][pCrashed] == 0) { PlayerInfo[playerid][pCrashed] = 1; }
else if(PlayerInfo[playerid][pCrashed] > 0) { PlayerInfo[playerid][pCrashed] += 1; }
OnPlayerDataSave(playerid);
format(string, sizeof(string), "[INFO]: %s has left the server. (Crashed)", sendername);
if(HireCar[playerid] != 299)
{
HireCar[playerid] = 299;
}
}
case 1: // Leaving
{
PlayerInfo[playerid][pCrashed] = 0;
OnPlayerDataSave(playerid);
GetPlayerArmour(playerid,armour);
PlayerInfo[playerid][pCrashArmour] = armour;
GetPlayerHealth(playerid,health);
PlayerInfo[playerid][pCrashHealth] = health;
format(string, sizeof(string), "[INFO]: %s has left the server. (Disconnected)", sendername);
if(HireCar[playerid] != 299)
{
SetVehicleToRespawn(HireCar[playerid]);
HireCar[playerid] = 299;
}
}
case 2: // Kicked/Banned
{
PlayerInfo[playerid][pCrashed] = 0;
OnPlayerDataSave(playerid);
format(string, sizeof(string), "[INFO]: %s has left the server. (Kicked/Banned)", sendername);
if(HireCar[playerid] != 299)
{
SetVehicleToRespawn(HireCar[playerid]);
HireCar[playerid] = 299;
}
}
}
PlayerInfo[playerid][pAdPending]=0; //I should make a DeinitPlayer function, but for now this is fine
ProxDetector(20.0, playerid, string, COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
DOO_OnPlayerDisconnect(playerid);
}
return 1;
}
pawn Код:
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string[128];
format(string, sizeof(string), "users/%s.ini", PlayerName(playerid));
if(!dini_Exists(string))
{
dini_Create(string);
dini_Set(string, "Key", password);
dini_IntSet(string, "Cash", PlayerInfo[playerid][pCash]);
dini_IntSet(string, "Account", PlayerInfo[playerid][pAccount]);
dini_IntSet(string, "AdminLevel", PlayerInfo[playerid][pAdmin]);
dini_IntSet(string, "Level", PlayerInfo[playerid][pLevel]);
dini_IntSet(string, "Respect", PlayerInfo[playerid][pExp]);
dini_IntSet(string, "UpgradePoints", PlayerInfo[playerid][gPupgrade]);
dini_IntSet(string, "Kills", PlayerInfo[playerid][pKills]);
dini_IntSet(string, "Gun1", PlayerInfo[playerid][pGun1]);
dini_IntSet(string, "Gun2", PlayerInfo[playerid][pGun2]);
dini_IntSet(string, "Gun3", PlayerInfo[playerid][pGun3]);
dini_IntSet(string, "Gun4", PlayerInfo[playerid][pGun4]);
dini_IntSet(string, "Gun5", PlayerInfo[playerid][pGun5]);
dini_IntSet(string, "Gun6", PlayerInfo[playerid][pGun6]);
dini_IntSet(string, "Gun7", PlayerInfo[playerid][pGun7]);
dini_IntSet(string, "Gun8", PlayerInfo[playerid][pGun8]);
dini_IntSet(string, "Gun9", PlayerInfo[playerid][pGun9]);
dini_IntSet(string, "Gun10", PlayerInfo[playerid][pGun10]);
dini_IntSet(string, "Gun11", PlayerInfo[playerid][pGun11]);
dini_IntSet(string, "Gun12", PlayerInfo[playerid][pGun12]);
dini_IntSet(string, "Gun13", PlayerInfo[playerid][pGun13]);
dini_IntSet(string, "Ammo1", PlayerInfo[playerid][pAmmo1]);
dini_IntSet(string, "Ammo2", PlayerInfo[playerid][pAmmo2]);
dini_IntSet(string, "Ammo3", PlayerInfo[playerid][pAmmo3]);
dini_IntSet(string, "Ammo4", PlayerInfo[playerid][pAmmo4]);
dini_IntSet(string, "Ammo5", PlayerInfo[playerid][pAmmo5]);
dini_IntSet(string, "Ammo6", PlayerInfo[playerid][pAmmo6]);
dini_IntSet(string, "Ammo7", PlayerInfo[playerid][pAmmo7]);
dini_IntSet(string, "Ammo8", PlayerInfo[playerid][pAmmo8]);
dini_IntSet(string, "Ammo9", PlayerInfo[playerid][pAmmo9]);
dini_IntSet(string, "Ammo10", PlayerInfo[playerid][pAmmo10]);
dini_IntSet(string, "Ammo11", PlayerInfo[playerid][pAmmo11]);
dini_IntSet(string, "Ammo12", PlayerInfo[playerid][pAmmo12]);
dini_IntSet(string, "Ammo13", PlayerInfo[playerid][pAmmo13]);
dini_FloatSet(string, "pSHealth", PlayerInfo[playerid][pSHealth]);
dini_FloatSet(string, "Health", PlayerInfo[playerid][pHealth]);
dini_FloatSet(string, "Pos_x", PlayerInfo[playerid][pPos_x]);
dini_FloatSet(string, "Pos_y", PlayerInfo[playerid][pPos_y]);
dini_FloatSet(string, "Pos_z", PlayerInfo[playerid][pPos_z]);
dini_IntSet(string, "Int", PlayerInfo[playerid][pInt]);
dini_IntSet(string, "Local", PlayerInfo[playerid][pLocal]);
dini_IntSet(string, "Team", PlayerInfo[playerid][pTeam]);
dini_IntSet(string, "Char", PlayerInfo[playerid][pModel]);
dini_IntSet(string, "PhoneNr", PlayerInfo[playerid][pPnumber]);
dini_IntSet(string, "House", PlayerInfo[playerid][pHousekey]);
dini_IntSet(string, "Bizz", PlayerInfo[playerid][pPbiskey]);
dini_IntSet(string, "Banned", PlayerInfo[playerid][pBanned]);
dini_IntSet(string, "FightSkill", PlayerInfo[playerid][pFightSkill]);
dini_IntSet(string, "Sex", PlayerInfo[playerid][pSex]);
dini_IntSet(string, "Age", PlayerInfo[playerid][pAge]);
dini_IntSet(string, "Tutorial", PlayerInfo[playerid][pTut]);
dini_IntSet(string, "Member", PlayerInfo[playerid][pMember]);
dini_IntSet(string, "Rank", PlayerInfo[playerid][pRank]);
dini_IntSet(string, "Crashed", PlayerInfo[playerid][pCrashed]);
dini_IntSet(string, "Job", PlayerInfo[playerid][pJob]);
dini_IntSet(string, "HouseEntered", HouseEntered[playerid]);
dini_IntSet(string, "IntEntered", IntEntered[playerid]);
dini_FloatSet(string, "CrashHealth",PlayerInfo[playerid][pCrashHealth]);
dini_FloatSet(string, "CrashArmour",PlayerInfo[playerid][pCrashArmour]);
dini_IntSet(string, "World", PlayerInfo[playerid][pWorld]);
dini_IntSet(string, "PayCheck", PlayerInfo[playerid][pPayCheck]);
dini_IntSet(string, "PayDay", PlayerInfo[playerid][pPayDay]);
dini_IntSet(string, "DonateRank", PlayerInfo[playerid][pDonateRank]);
dini_IntSet(string, "ConnectTime", PlayerInfo[playerid][pConnectTime]);
dini_IntSet(string, "DonateTime", PlayerInfo[playerid][pDonateTime]);
dini_IntSet(string, "Jailed", PlayerInfo[playerid][pJailed]);
dini_IntSet(string, "JailTime", PlayerInfo[playerid][pJailTime]);
dini_IntSet(string, "Drugs", PlayerInfo[playerid][pDrugs]);
dini_IntSet(string, "Materials", PlayerInfo[playerid][pMats]);
dini_IntSet(string, "VaultOwned", PlayerInfo[playerid][pVaultOwned]);
dini_IntSet(string, "VaultDrugs", PlayerInfo[playerid][pVaultDrugs]);
dini_IntSet(string, "VaultMats", PlayerInfo[playerid][pVaultMats]);
dini_IntSet(string, "Watch", PlayerInfo[playerid][pWatch]);
dini_IntSet(string, "PhoneBook", PlayerInfo[playerid][pPhoneBook]);
dini_IntSet(string, "Mask", PlayerInfo[playerid][pMask]);
dini_IntSet(string, "CarLic", PlayerInfo[playerid][pDrivLic]);
dini_IntSet(string, "Car", PlayerInfo[playerid][pCarkey]);
dini_IntSet(string, "Car2", PlayerInfo[playerid][pCarkey2]);
dini_IntSet(string, "Car3", PlayerInfo[playerid][pCarkey3]);
dini_IntSet(string, "Married", PlayerInfo[playerid][pMarried]);
dini_IntSet(string, "Helper", PlayerInfo[playerid][pHelper]);
dini_IntSet(string, "WantedLevel", WantedLevel[playerid]);
dini_IntSet(string, "GunLic", PlayerInfo[playerid][pGunLic]);
dini_IntSet(string, "Crimes", PlayerInfo[playerid][pCrimes]);
dini_IntSet(string, "Arrested", PlayerInfo[playerid][pArrested]);
dini_Set(string, "MarriedTo", PlayerInfo[playerid][pMarriedTo]);
dini_Set(string, "Taunt", PlayerInfo[playerid][pTaunt]);
dini_IntSet(string, "DonateCarDate", PlayerInfo[playerid][pDonatorCarDate]);
dini_IntSet(string, "Warrant", PlayerInfo[playerid][pWarrant]);
dini_Set(string, "WarrantReason", PlayerInfo[playerid][pWarrantReason]);
dini_IntSet(string, "FactionIdent", PlayerInfo[playerid][pFactionIden]);
dini_IntSet(string, "LockTime", PlayerInfo[playerid][pLockTime]);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Unable to register, account exists.");
Kick(playerid);
return 1;
}
}
return 1;
}
pawn Код:
public OnPlayerLogin(playerid,password[])
{
new string2[128], keystring[256], string[256];
format(string2, sizeof(string2), "users/%s.ini", PlayerName(playerid));
keystring = dini_Get(string2, "Key");
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
if(strcmp(keystring, password, true) == 0)
{
PlayerInfo[playerid][pCash] = dini_Int(string2,"Cash");
PlayerInfo[playerid][pAccount] = dini_Int(string2,"Account");
PlayerInfo[playerid][pAdmin] = dini_Int(string2,"AdminLevel");
PlayerInfo[playerid][pLevel] = dini_Int(string2,"Level");
PlayerInfo[playerid][pExp] = dini_Int(string2,"Respect");
PlayerInfo[playerid][gPupgrade] = dini_Int(string2,"UpgradePoints");
PlayerInfo[playerid][pKills] = dini_Int(string2,"Kills");
PlayerInfo[playerid][pSHealth] = dini_Float(string2,"pSHealth");
PlayerInfo[playerid][pHealth] = dini_Float(string2,"Health");
PlayerInfo[playerid][pPos_x] = dini_Float(string2,"Pos_x");
PlayerInfo[playerid][pPos_y] = dini_Float(string2,"Pos_y");
PlayerInfo[playerid][pPos_z] = dini_Float(string2,"Pos_z");
PlayerInfo[playerid][pInt] = dini_Int(string2,"Int");
PlayerInfo[playerid][pLocal] = dini_Int(string2,"Local");
PlayerInfo[playerid][pTeam] = dini_Int(string2,"Team");
PlayerInfo[playerid][pModel] = dini_Int(string2,"Char");
PlayerInfo[playerid][pPnumber] = dini_Int(string2,"PhoneNr");
PlayerInfo[playerid][pHousekey] = dini_Int(string2,"pHouseKey");
PlayerInfo[playerid][pPbiskey] = dini_Int(string2,"Bizz");
PlayerInfo[playerid][pBanned] = dini_Int(string2,"Banned");
PlayerInfo[playerid][pFightSkill] = dini_Int(string2,"FightSkill");
PlayerInfo[playerid][pSex] = dini_Int(string2,"Sex");
PlayerInfo[playerid][pAge] = dini_Int(string2,"Age");
PlayerInfo[playerid][pTut] = dini_Int(string2,"Tutorial");
PlayerInfo[playerid][pMember] = dini_Int(string2,"Member");
PlayerInfo[playerid][pRank] = dini_Int(string2,"Rank");
PlayerInfo[playerid][pCrashed] = dini_Int(string2,"Crashed");
if(PlayerInfo[playerid][pCrashed]==1) {
PlayerInfo[playerid][pGun1] = dini_Int(string2,"Gun1");
PlayerInfo[playerid][pGun2] = dini_Int(string2,"Gun2");
PlayerInfo[playerid][pGun3] = dini_Int(string2,"Gun3");
PlayerInfo[playerid][pGun4] = dini_Int(string2,"Gun4");
PlayerInfo[playerid][pGun5] = dini_Int(string2,"Gun5");
PlayerInfo[playerid][pGun6] = dini_Int(string2,"Gun6");
PlayerInfo[playerid][pGun7] = dini_Int(string2,"Gun7");
PlayerInfo[playerid][pGun8] = dini_Int(string2,"Gun8");
PlayerInfo[playerid][pGun9] = dini_Int(string2,"Gun9");
PlayerInfo[playerid][pGun10] = dini_Int(string2,"Gun10");
PlayerInfo[playerid][pGun11] = dini_Int(string2,"Gun11");
PlayerInfo[playerid][pGun12] = dini_Int(string2,"Gun12");
PlayerInfo[playerid][pGun13] = dini_Int(string2,"Gun13");
PlayerInfo[playerid][pAmmo1] = dini_Int(string2,"Ammo1");
PlayerInfo[playerid][pAmmo2] = dini_Int(string2,"Ammo2");
PlayerInfo[playerid][pAmmo3] = dini_Int(string2,"Ammo3");
PlayerInfo[playerid][pAmmo4] = dini_Int(string2,"Ammo4");
PlayerInfo[playerid][pAmmo5] = dini_Int(string2,"Ammo5");
PlayerInfo[playerid][pAmmo6] = dini_Int(string2,"Ammo6");
PlayerInfo[playerid][pAmmo7] = dini_Int(string2,"Ammo7");
PlayerInfo[playerid][pAmmo8] = dini_Int(string2,"Ammo8");
PlayerInfo[playerid][pAmmo9] = dini_Int(string2,"Ammo9");
PlayerInfo[playerid][pAmmo10] = dini_Int(string2,"Ammo10");
PlayerInfo[playerid][pAmmo11] = dini_Int(string2,"Ammo11");
PlayerInfo[playerid][pAmmo12] = dini_Int(string2,"Ammo12");
PlayerInfo[playerid][pAmmo13] = dini_Int(string2,"Ammo13");
}
PlayerInfo[playerid][pJob] = dini_Int(string2,"Job");
PlayerInfo[playerid][pPayCheck] = dini_Int(string2,"PayCheck");
PlayerInfo[playerid][pPayDay] = dini_Int(string2,"PayDay");
PlayerInfo[playerid][pDonateRank] = dini_Int(string2,"DonateRank");
PlayerInfo[playerid][pConnectTime] = dini_Int(string2,"ConnectTime");
PlayerInfo[playerid][pDonateTime] = dini_Int(string2,"DonateTime");
PlayerInfo[playerid][pJailed] = dini_Int(string2,"Jailed");
PlayerInfo[playerid][pJailTime] = dini_Int(string2,"JailTime");
PlayerInfo[playerid][pDrugs] = dini_Int(string2,"Drugs");
PlayerInfo[playerid][pMats] = dini_Int(string2,"Materials");
PlayerInfo[playerid][pVaultOwned] = dini_Int(string2,"VaultOwned");
PlayerInfo[playerid][pVaultDrugs] = dini_Int(string2,"VaultDrugs");
PlayerInfo[playerid][pVaultMats] = dini_Int(string2,"VaultMats");
PlayerInfo[playerid][pWatch] = dini_Int(string2,"Watch");
PlayerInfo[playerid][pPhoneBook] = dini_Int(string2,"PhoneBook");
PlayerInfo[playerid][pDrivLic] = dini_Int(string2,"CarLic");
PlayerInfo[playerid][pCarkey] = dini_Int(string2,"Car");
PlayerInfo[playerid][pCarkey2] = dini_Int(string2,"Car2");
PlayerInfo[playerid][pCarkey3] = dini_Int(string2,"Car3");
PlayerInfo[playerid][pMarried] = dini_Int(string2,"Married");
PlayerInfo[playerid][pHelper] = dini_Int(string2,"Helper");
WantedLevel[playerid] = dini_Int(string2,"WantedLevel");
PlayerInfo[playerid][pGunLic] = dini_Int(string2,"GunLic");
PlayerInfo[playerid][pCrimes] = dini_Int(string2,"Crimes");
PlayerInfo[playerid][pArrested] = dini_Int(string2,"Arrested");
string = dini_Get(string2, "MarriedTo");
strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
string = dini_Get(string2, "Taunt");
strmid(PlayerInfo[playerid][pTaunt], string, 0, strlen(string), 255);
PlayerInfo[playerid][pInvWeapon] = dini_Int(string2,"InvWeapon");
PlayerInfo[playerid][pInvAmmo] = dini_Int(string2,"InvAmmo");
PlayerInfo[playerid][pInvBeer] = dini_Int(string2,"InvBeer");
PlayerInfo[playerid][pInvWine] = dini_Int(string2,"InvWine");
PlayerInfo[playerid][pInvCiggy] = dini_Int(string2,"InvCiggy");
PlayerInfo[playerid][pHidden] = dini_Int(string2,"Hidden");
PlayerInfo[playerid][pWalkie] = dini_Int(string2,"Walkie");
PlayerInfo[playerid][pWalkieFreq] = dini_Int(string2,"WalkieFreq");
PlayerInfo[playerid][pLighter] = dini_Int(string2,"Lighter");
PlayerInfo[playerid][pCigs] = dini_Int(string2,"Cigs");
string = dini_Get(string2, "BanReason");
strmid(PlayerInfo[playerid][pBanReason], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes1");
strmid(PlayerInfo[playerid][pFishes1], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes2");
strmid(PlayerInfo[playerid][pFishes2], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes3");
strmid(PlayerInfo[playerid][pFishes3], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes4");
strmid(PlayerInfo[playerid][pFishes4], string, 0, strlen(string), 255);
string = dini_Get(string2, "Fishes5");
strmid(PlayerInfo[playerid][pFishes5], string, 0, strlen(string), 255);
PlayerInfo[playerid][pFish][0] = dini_Int(string2,"Fish1");
PlayerInfo[playerid][pFish][1] = dini_Int(string2,"Fish2");
PlayerInfo[playerid][pFish][2] = dini_Int(string2,"Fish3");
PlayerInfo[playerid][pFish][3] = dini_Int(string2,"Fish4");
PlayerInfo[playerid][pFish][4] = dini_Int(string2,"Fish5");
PlayerInfo[playerid][pNote1s] = dini_Int(string2,"Note1s");
PlayerInfo[playerid][pNote2s] = dini_Int(string2,"Note2s");
PlayerInfo[playerid][pNote3s] = dini_Int(string2,"Note3s");
PlayerInfo[playerid][pNote4s] = dini_Int(string2,"Note4s");
PlayerInfo[playerid][pNote5s] = dini_Int(string2,"Note5s");
string = dini_Get(string2, "Note1");
strmid(PlayerInfo[playerid][pNote1], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note2");
strmid(PlayerInfo[playerid][pNote2], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note3");
strmid(PlayerInfo[playerid][pNote3], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note4");
strmid(PlayerInfo[playerid][pNote4], string, 0, strlen(string), 255);
string = dini_Get(string2, "Note5");
strmid(PlayerInfo[playerid][pNote5], string, 0, strlen(string), 255);
JobDelay[playerid] = dini_Int(string2,"JobDelay");
string = dini_Get(string2, "Accent");
strmid(PlayerInfo[playerid][pAccent], string, 0, strlen(string), 255);
PlayerInfo[playerid][pVoted] = dini_Int(string2,"Voted2");
string = dini_Get(string2, "AdmName");
strmid(PlayerInfo[playerid][pAdmName], string, 0, strlen(string), 255);
PlayerInfo[playerid][pHeadValue] = dini_Int(string2,"HeadValue");
PlayerInfo[playerid][pHiddenNum] = dini_Int(string2,"HiddenNum");
PlayerInfo[playerid][pSkate] = dini_Int(string2,"Skate");
PlayerInfo[playerid][pRadio] = dini_Int(string2,"Radio");
PlayerInfo[playerid][pTicket][0] = dini_Int(string2,"Ticket0");
PlayerInfo[playerid][pTicket][1] = dini_Int(string2,"Ticket1");
PlayerInfo[playerid][pTicket][2] = dini_Int(string2,"Ticket2");
PlayerInfo[playerid][pTicket][3] = dini_Int(string2,"Ticket3");
PlayerInfo[playerid][pTicket][4] = dini_Int(string2,"Ticket4");
string = dini_Get(string2, "TicketReason0");
strmid(PlayerInfo[playerid][pTicketReason0], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason1");
strmid(PlayerInfo[playerid][pTicketReason1], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason2");
strmid(PlayerInfo[playerid][pTicketReason2], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason3");
strmid(PlayerInfo[playerid][pTicketReason3], string, 0, strlen(string), 255);
string = dini_Get(string2, "TicketReason4");
strmid(PlayerInfo[playerid][pTicketReason4], string, 0, strlen(string), 255);
string = dini_Get(string2, "App");
strmid(PlayerInfo[playerid][pApp], string, 0, strlen(string), 255);
PlayerInfo[playerid][pChanges] = dini_Int(string2,"Changes");
PlayerInfo[playerid][pFamNum] = dini_Int(string2,"FamNum");
string = dini_Get(string2, "Tattoo");
strmid(PlayerInfo[playerid][pTattoo], string, 0, strlen(string), 255);
PlayerInfo[playerid][pCellphone] = dini_Int(string2,"Cellphone");
PlayerInfo[playerid][pCelltime] = dini_Int(string2,"Celltime");
PlayerInfo[playerid][pCellplan] = dini_Int(string2,"Cellplan");
PlayerInfo[playerid][pDonerGate1] = dini_Int(string2,"DonerGate1");
BreakAllow[playerid] = dini_Int(string2,"BreakAllow");
PlayerInfo[playerid][pFurnLocked] = dini_Int(string2,"FurnLocked");
PlayerInfo[playerid][pDonatorCarDate] = dini_Int(string2,"DonateCarDate");
PlayerInfo[playerid][pWarrant] = dini_Int(string2,"Warrant");
PlayerInfo[playerid][pLockTime] = dini_Int(string2,"LockTime");
string = dini_Get(string2, "WarrentReason");
PlayerInfo[playerid][pFactionIden] = dini_Int(string2,"FactionIdent");
strmid(PlayerInfo[playerid][pWarrantReason], string, 0, strlen(string), 255);
if(PlayerInfo[playerid][pCrashed] != 0)
{
HouseEntered[playerid] = dini_Int(string2,"HouseEntered");
IntEntered[playerid] = dini_Int(string2,"IntEntered");
PlayerInfo[playerid][pWorld] = dini_Int(string2,"World");
PlayerInfo[playerid][pCrashArmour] = dini_Float(string2,"CrashArmour");
PlayerInfo[playerid][pCrashHealth] = dini_Float(string2,"CrashHealth");
PlayerInfo[playerid][pMask] = dini_Int(string2,"Mask");
PlayerInfo[playerid][pMaskUse] = dini_Int(string2,"MaskUse");
}
if(PlayerInfo[playerid][pDonateRank] != 0)
{
PlayerInfo[playerid][pMask] = dini_Int(string2,"Mask");
}
}
else
{
if(WrongPass[playerid] < 5)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "[ERROR]: Invalid Password.");
WrongPass[playerid]++;
}
else
{
BanEx(playerid,"Wrong Password");
WrongPass[playerid] = 0;
}
return 1;
}
if(PlayerInfo[playerid][pBanned] == 1)
{
if(strcmp(PlayerInfo[playerid][pBanReason], "None", true) == 0)
{
SendClientMessage(playerid,COLOR_LIGHTRED,"[INFO]: Your account is locked, Please post an appeal on http://projectstate.freeforums.org/.");
}
else
{
format(string2, sizeof(string2), "[INFO]: Your account is locked, For the following Reason: %s.",PlayerInfo[playerid][pBanReason]);
SendClientMessage(playerid, COLOR_LIGHTRED, string2);
SendClientMessage(playerid,COLOR_LIGHTRED,"[INFO]: Please post an Appeal on http://projectstate.freeforums.org/.");
}
Kick(playerid);
return 1;
} else if(getdate()<PlayerInfo[playerid][pLockTime]) {
if(strcmp(PlayerInfo[playerid][pBanReason], "None", true) == 0)
{
format(string2,sizeof(string2),"[INFO]: Your account is locked for %i day(s), Please post an appeal on http://projectstate.freeforums.org/.",PlayerInfo[playerid][pLockTime]-getdate());
SendClientMessage(playerid,COLOR_LIGHTRED,string2);
}
else
{
format(string2, sizeof(string2), "[INFO]: Your account is locked for %i day(s), For the following Reason: %s.",PlayerInfo[playerid][pLockTime]-getdate(),PlayerInfo[playerid][pBanReason]);
SendClientMessage(playerid, COLOR_LIGHTRED, string2);
SendClientMessage(playerid,COLOR_LIGHTRED,"[INFO]: Please post an Appeal on www.http://projectstate.freeforums.org/http.");
}
Kick(playerid);
return 1;
}
ClearChatbox(playerid, 10);
SendClientMessage(playerid,COLOR_YELLOW5,"____________________________________________________");
SendClientMessage(playerid,COLOR_LIGHTYELLOW5," Project State Roleplay: ");
format(string2, sizeof(string2), "[INFO]: Script Version: %s.",SCRIPT_VERSION);
SendClientMessage(playerid, COLOR_LIGHTYELLOW5, string2);
format(string2, sizeof(string2), "[INFO]: Last Update: %s.",SCRIPT_UPDATE);
SendClientMessage(playerid, COLOR_LIGHTYELLOW5, string2);
format(string2, sizeof(string2), "[INFO]: Ventrilo: %s.",SCRIPT_VENT);
SendClientMessage(playerid, COLOR_LIGHTYELLOW5, string2);
SendClientMessage(playerid, COLOR_LIGHTYELLOW5, "[INFO]: Forums: http://projectstate.freeforums.org/.");
SendClientMessage(playerid,COLOR_YELLOW5,"____________________________________________________");
if (PlayerInfo[playerid][pDonateRank] > 0)
{
SendClientMessage(playerid, COLOR_WHITE,"Thank you for your donation to Project State Roleplay.");
}
if (PlayerInfo[playerid][pAdmin] > 0)
{
format(string2, sizeof(string2), "[SERVER]: You are logged in as a Level %d Admin.",PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_LIGHTRED,string2);
format(string2, sizeof(string2), "Admin MOTD: %s.",AdminMotd);
SendClientMessage(playerid, COLOR_YELLOW,string2);
gAdminLogged[playerid]=1;
}
if(PlayerInfo[playerid][pHelper]>0) {
format(string2, sizeof(string2), "Helper MOTD: %s.",HelperMotd);
SendClientMessage(playerid, COLOR_YELLOW,string2);
}
SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
new string3[128];
if(PlayerInfo[playerid][pCrashed] == 0)
{
format(string3, sizeof(string3), "~w~Welcome ~n~~y~ %s", playername2);
}
else
{
format(string3, sizeof(string3), "~p~Crashed...~n~~w~Returning to your last position");
}
GameTextForPlayer(playerid, string3, 5000, 1);
if(PlayerInfo[playerid][pMember] >= 7)
{
format(string3, sizeof(string3), "Family MOTD: %s",FamilyInfo[PlayerInfo[playerid][pMember]][FamilyMOTD]);
SendClientMessage(playerid,COLOR_YELLOW,string3);
}
TogglePlayerSpectating(playerid,0);
ResetPlayerPCash(playerid);
GivePlayerPCash(playerid,PlayerInfo[playerid][pCash]);
gPlayerLogged[playerid] = 1;
new LevScore;
LevScore = PlayerInfo[playerid][pLevel];
SetPlayerScore(playerid,LevScore);
TextDrawShowForPlayer(playerid, E1);
SetPlayerColor(playerid,COLOR_WHITE);
CarKeys(playerid);
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
SetCameraBehindPlayer(playerid);
SetVehicleParamsForPlayer(88,playerid,0,1);
SetVehicleParamsForPlayer(89,playerid,0,1);
SetVehicleParamsForPlayer(90,playerid,0,1);
SetPlayerRandomSpawn(playerid,1);
if(PlayerInfo[playerid][pHousekey] == 0)
{
PlayerInfo[playerid][pHousekey] = 255;
}
if(strcmp(PlayerInfo[playerid][pAccent], " ", true) == 0)
{
strmid(PlayerInfo[playerid][pAccent], "Says", 0, strlen("Says"), 255);
}
if(strcmp(PlayerInfo[playerid][pAdmName], " ", true) == 0)
{
strmid(PlayerInfo[playerid][pAdmName], "None", 0, strlen("None"), 255);
}
if(strcmp(PlayerInfo[playerid][pAdminPass], " ", true) == 0)
{
strmid(PlayerInfo[playerid][pAdminPass], "None", 0, strlen("None"), 255);
}
if(strcmp(PlayerInfo[playerid][pTattoo], " ", true) == 0)
{
strmid(PlayerInfo[playerid][pTattoo], "None", 0, strlen("None"), 255);
}
PreloadAnimLib(playerid,"BENCHPRESS");
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"CRACK");
/*
for(new i = 0; i < sizeof(HouseInfo2); i++)
{
if(strcmp(playername2, HouseInfo2[i][h2Owner], true) == 0)
{
SendClientMessage(playerid,COLOR_WHITE,"Type /refundhouse to refund your old property.");
return 1;
}
}*/
if(PlayerInfo[playerid][pMember] >= 7)
{
if(PlayerInfo[playerid][pFamNum] == 0)
{
FamilyInfo[PlayerInfo[playerid][pMember]][FamilyMembers]++;
SaveFamilies();
PlayerInfo[playerid][pFamNum] = 1;
}
}
return 1;
}
pawn Код:
public OnPlayerDataSave(playerid)
{
if(IsPlayerConnected(playerid) == 1 && gPlayerLogged[playerid] == 1)
{
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
new string[128];
format(string, sizeof(string), "users/%s.ini", PlayerName(playerid));
if(dini_Exists(string))
{
PlayerInfo[playerid][pCash] = GetPlayerPCash(playerid);
new Float:armour;
new Float:health;
GetPlayerArmour(playerid,armour);
PlayerInfo[playerid][pCrashArmour] = armour;
GetPlayerHealth(playerid,health);
PlayerInfo[playerid][pCrashHealth] = health;
dini_IntSet(string, "Cash", PlayerInfo[playerid][pCash]);
dini_IntSet(string, "Account", PlayerInfo[playerid][pAccount]);
dini_IntSet(string, "AdminLevel", PlayerInfo[playerid][pAdmin]);
dini_IntSet(string, "Level", PlayerInfo[playerid][pLevel]);
dini_IntSet(string, "Respect", PlayerInfo[playerid][pExp]);
dini_IntSet(string, "UpgradePoints", PlayerInfo[playerid][gPupgrade]);
dini_IntSet(string, "Kills", PlayerInfo[playerid][pKills]);
dini_IntSet(string, "Gun1", PlayerInfo[playerid][pGun1]);
dini_IntSet(string, "Gun2", PlayerInfo[playerid][pGun2]);
dini_IntSet(string, "Gun3", PlayerInfo[playerid][pGun3]);
dini_IntSet(string, "Gun4", PlayerInfo[playerid][pGun4]);
dini_IntSet(string, "Gun5", PlayerInfo[playerid][pGun5]);
dini_IntSet(string, "Gun6", PlayerInfo[playerid][pGun6]);
dini_IntSet(string, "Ammo1", PlayerInfo[playerid][pAmmo1]);
dini_IntSet(string, "Ammo2", PlayerInfo[playerid][pAmmo2]);
dini_IntSet(string, "Ammo3", PlayerInfo[playerid][pAmmo3]);
dini_IntSet(string, "Ammo4", PlayerInfo[playerid][pAmmo4]);
dini_IntSet(string, "Ammo5", PlayerInfo[playerid][pAmmo5]);
dini_IntSet(string, "Ammo6", PlayerInfo[playerid][pAmmo6]);
dini_FloatSet(string, "pSHealth", PlayerInfo[playerid][pSHealth]);
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
dini_FloatSet(string, "Health", PlayerInfo[playerid][pHealth]);
dini_FloatSet(string, "Pos_x", PlayerInfo[playerid][pPos_x]);
dini_FloatSet(string, "Pos_y", PlayerInfo[playerid][pPos_y]);
dini_FloatSet(string, "Pos_z", PlayerInfo[playerid][pPos_z]);
dini_IntSet(string, "Int", PlayerInfo[playerid][pInt]);
dini_IntSet(string, "Local", PlayerInfo[playerid][pLocal]);
dini_IntSet(string, "Team", PlayerInfo[playerid][pTeam]);
dini_IntSet(string, "Char", PlayerInfo[playerid][pModel]);
dini_IntSet(string, "PhoneNr", PlayerInfo[playerid][pPnumber]);
dini_IntSet(string, "pHouseKey", PlayerInfo[playerid][pHousekey]);
dini_IntSet(string, "Bizz", PlayerInfo[playerid][pPbiskey]);
dini_IntSet(string, "Banned", PlayerInfo[playerid][pBanned]);
dini_IntSet(string, "FightSkill", PlayerInfo[playerid][pFightSkill]);
dini_IntSet(string, "Sex", PlayerInfo[playerid][pSex]);
dini_IntSet(string, "Age", PlayerInfo[playerid][pAge]);
dini_IntSet(string, "Tutorial", PlayerInfo[playerid][pTut]);
dini_IntSet(string, "Member", PlayerInfo[playerid][pMember]);
dini_IntSet(string, "Rank", PlayerInfo[playerid][pRank]);
dini_IntSet(string, "Crashed", PlayerInfo[playerid][pCrashed]);
dini_IntSet(string, "Job", PlayerInfo[playerid][pJob]);
dini_IntSet(string, "HouseEntered", HouseEntered[playerid]);
dini_IntSet(string, "IntEntered", IntEntered[playerid]);
dini_FloatSet(string, "CrashHealth",PlayerInfo[playerid][pCrashHealth]);
dini_FloatSet(string, "CrashArmour",PlayerInfo[playerid][pCrashArmour]);
dini_IntSet(string, "World", PlayerInfo[playerid][pWorld]);
dini_IntSet(string, "PayCheck", PlayerInfo[playerid][pPayCheck]);
dini_IntSet(string, "PayDay", PlayerInfo[playerid][pPayDay]);
dini_IntSet(string, "DonateRank", PlayerInfo[playerid][pDonateRank]);
dini_IntSet(string, "ConnectTime", PlayerInfo[playerid][pConnectTime]);
dini_IntSet(string, "DonateTime", PlayerInfo[playerid][pDonateTime]);
dini_IntSet(string, "Jailed", PlayerInfo[playerid][pJailed]);
dini_IntSet(string, "JailTime", PlayerInfo[playerid][pJailTime]);
dini_IntSet(string, "Drugs", PlayerInfo[playerid][pDrugs]);
dini_IntSet(string, "Materials", PlayerInfo[playerid][pMats]);
dini_IntSet(string, "VaultOwned", PlayerInfo[playerid][pVaultOwned]);
dini_IntSet(string, "VaultDrugs", PlayerInfo[playerid][pVaultDrugs]);
dini_IntSet(string, "VaultMats", PlayerInfo[playerid][pVaultMats]);
dini_IntSet(string, "Watch", PlayerInfo[playerid][pWatch]);
dini_IntSet(string, "PhoneBook", PlayerInfo[playerid][pPhoneBook]);
dini_IntSet(string, "Mask", PlayerInfo[playerid][pMask]);
dini_IntSet(string, "CarLic", PlayerInfo[playerid][pDrivLic]);
dini_IntSet(string, "Car", PlayerInfo[playerid][pCarkey]);
dini_IntSet(string, "Car2", PlayerInfo[playerid][pCarkey2]);
dini_IntSet(string, "Car3", PlayerInfo[playerid][pCarkey3]);
dini_IntSet(string, "Married", PlayerInfo[playerid][pMarried]);
dini_IntSet(string, "Helper", PlayerInfo[playerid][pHelper]);
dini_IntSet(string, "WantedLevel", WantedLevel[playerid]);
dini_IntSet(string, "GunLic", PlayerInfo[playerid][pGunLic]);
dini_IntSet(string, "Crimes", PlayerInfo[playerid][pCrimes]);
dini_IntSet(string, "Arrested", PlayerInfo[playerid][pArrested]);
dini_Set(string, "MarriedTo", PlayerInfo[playerid][pMarriedTo]);
dini_Set(string, "Taunt", PlayerInfo[playerid][pTaunt]);
dini_IntSet(string, "InvWeapon", PlayerInfo[playerid][pInvWeapon]);
dini_IntSet(string, "InvAmmo", PlayerInfo[playerid][pInvAmmo]);
dini_IntSet(string, "InvBeer", PlayerInfo[playerid][pInvBeer]);
dini_IntSet(string, "InvWine", PlayerInfo[playerid][pInvWine]);
dini_IntSet(string, "InvCiggy", PlayerInfo[playerid][pInvCiggy]);
dini_IntSet(string, "Hidden", PlayerInfo[playerid][pHidden]);
dini_IntSet(string, "Walkie", PlayerInfo[playerid][pWalkie]);
dini_IntSet(string, "WalkieFreq", PlayerInfo[playerid][pWalkieFreq]);
dini_IntSet(string, "Lighter", PlayerInfo[playerid][pLighter]);
dini_IntSet(string, "Cigs", PlayerInfo[playerid][pCigs]);
dini_Set(string, "BanReason", PlayerInfo[playerid][pBanReason]);
dini_Set(string, "Fishes1", PlayerInfo[playerid][pFishes1]);
dini_Set(string, "Fishes2", PlayerInfo[playerid][pFishes2]);
dini_Set(string, "Fishes3", PlayerInfo[playerid][pFishes3]);
dini_Set(string, "Fishes4", PlayerInfo[playerid][pFishes4]);
dini_Set(string, "Fishes5", PlayerInfo[playerid][pFishes5]);
dini_IntSet(string, "Fish1", PlayerInfo[playerid][pFish][0]);
dini_IntSet(string, "Fish2", PlayerInfo[playerid][pFish][1]);
dini_IntSet(string, "Fish3", PlayerInfo[playerid][pFish][2]);
dini_IntSet(string, "Fish4", PlayerInfo[playerid][pFish][3]);
dini_IntSet(string, "Fish5", PlayerInfo[playerid][pFish][4]);
dini_IntSet(string, "Note1s", PlayerInfo[playerid][pNote1s]);
dini_IntSet(string, "Note2s", PlayerInfo[playerid][pNote2s]);
dini_IntSet(string, "Note3s", PlayerInfo[playerid][pNote3s]);
dini_IntSet(string, "Note4s", PlayerInfo[playerid][pNote4s]);
dini_IntSet(string, "Note5s", PlayerInfo[playerid][pNote5s]);
dini_Set(string, "Note1", PlayerInfo[playerid][pNote1]);
dini_Set(string, "Note2", PlayerInfo[playerid][pNote2]);
dini_Set(string, "Note3", PlayerInfo[playerid][pNote3]);
dini_Set(string, "Note4", PlayerInfo[playerid][pNote4]);
dini_Set(string, "Note5", PlayerInfo[playerid][pNote5]);
dini_IntSet(string, "JobDelay", JobDelay[playerid]);
dini_IntSet(string, "Mask", PlayerInfo[playerid][pMask]);
dini_IntSet(string, "MaskUse", PlayerInfo[playerid][pMaskUse]);
dini_Set(string, "Accent", PlayerInfo[playerid][pAccent]);
dini_IntSet(string, "Voted2", PlayerInfo[playerid][pVoted]);
dini_Set(string, "AdmName", PlayerInfo[playerid][pAdmName]);
dini_IntSet(string, "HeadValue", PlayerInfo[playerid][pHeadValue]);
dini_IntSet(string, "HiddenNum", PlayerInfo[playerid][pHiddenNum]);
dini_IntSet(string, "Skate", PlayerInfo[playerid][pSkate]);
dini_IntSet(string, "Radio", PlayerInfo[playerid][pRadio]);
dini_IntSet(string, "Ticket0", PlayerInfo[playerid][pTicket][0]);
dini_IntSet(string, "Ticket1", PlayerInfo[playerid][pTicket][1]);
dini_IntSet(string, "Ticket2", PlayerInfo[playerid][pTicket][2]);
dini_IntSet(string, "Ticket3", PlayerInfo[playerid][pTicket][3]);
dini_IntSet(string, "Ticket4", PlayerInfo[playerid][pTicket][4]);
dini_Set(string, "TicketReason0", PlayerInfo[playerid][pTicketReason0]);
dini_Set(string, "TicketReason1", PlayerInfo[playerid][pTicketReason1]);
dini_Set(string, "TicketReason2", PlayerInfo[playerid][pTicketReason2]);
dini_Set(string, "TicketReason3", PlayerInfo[playerid][pTicketReason3]);
dini_Set(string, "TicketReason4", PlayerInfo[playerid][pTicketReason4]);
dini_Set(string, "App", PlayerInfo[playerid][pApp]);
dini_IntSet(string, "Changes", PlayerInfo[playerid][pChanges]);
dini_IntSet(string, "FamNum", PlayerInfo[playerid][pFamNum]);
dini_Set(string, "Tattoo", PlayerInfo[playerid][pTattoo]);
dini_IntSet(string, "Cellphone", PlayerInfo[playerid][pCellphone]);
dini_IntSet(string, "Celltime", PlayerInfo[playerid][pCelltime]);
dini_IntSet(string, "Cellplan", PlayerInfo[playerid][pCellplan]);
dini_IntSet(string, "DonerGate1", PlayerInfo[playerid][pDonerGate1]);
dini_IntSet(string, "BreakAllow", BreakAllow[playerid]);
dini_IntSet(string, "FurnLocked", PlayerInfo[playerid][pFurnLocked]);
dini_IntSet(string, "DonateCarDate", PlayerInfo[playerid][pDonatorCarDate]);
dini_IntSet(string, "Warrant", PlayerInfo[playerid][pWarrant]);
dini_Set(string, "WarrantReason", PlayerInfo[playerid][pWarrantReason]);
dini_IntSet(string, "FactionIdent", PlayerInfo[playerid][pFactionIden]);
dini_IntSet(string, "LockTime", PlayerInfo[playerid][pLockTime]);
}
}
return 1;
}