How To Add Button?
#1

I Want To Remove /enter and /exit command on my gamemode
after this i want to add button that any one can enter and exit by pressing that button
i also want to START vehicle automatically first time when person enter in vehicle and if he type /engine so engine stoped and if he type again /enigne so engine start please help me in this
Reply
#2

yea i want it too bro if some one tell you then tell me also
Reply
#3

I think that's roughly what you need:

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

If you want us to give you a more direct answer, then I suggest you to show us your /enter and /exit commands.
Reply
#4

he is right
Reply
#5

Код:
CMD:enter(playerid, params[])
{
    EnterBuilding(playerid);
    return 1;
}
CMD:exit(playerid, params[])
{
if(GetPVarInt(playerid, "PBM") > 0) {
        SendClientMessage(playerid, COLOR_WHITE, "You can't do this while being in a arena!");
        return 1;
    }
    if(PlayerInfo[playerid][pJailed] > 0)
	{
        SendClientMessage(playerid, COLOR_WHITE, "You can't do this right now.");
        return 1;
    }
	if(RobbingBank[playerid])
	{
	    SendClientMessage(playerid, COLOR_WHITE, " You cannot /exit during robbery");
		return 1;
	}
	new string[128];

    for(new i = 0; i < sizeof(DDoorsInfo); i++) {
        if(IsPlayerInRangeOfPoint(playerid,3,DDoorsInfo[i][ddInteriorX], DDoorsInfo[i][ddInteriorY], DDoorsInfo[i][ddInteriorZ]) && PlayerInfo[playerid][pVW] == DDoorsInfo[i][ddInteriorVW])
		{
		    if(PlayerInfo[playerid][pMask] == 1) { format(string, sizeof(string), "* Stranger has exited the building %s.",DDoorsInfo[i][ddDescription]); }
			else { format(string, sizeof(string), "* %s has exited the building %s.", GetPlayerNameEx(playerid), DDoorsInfo[i][ddDescription]); }
			ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

            SetPlayerInterior(playerid,DDoorsInfo[i][ddExteriorInt]);
            PlayerInfo[playerid][pInt] = DDoorsInfo[i][ddExteriorInt];
            SetPlayerVirtualWorld(playerid, DDoorsInfo[i][ddExteriorVW]);
            PlayerInfo[playerid][pVW] = DDoorsInfo[i][ddExteriorVW];
            if(DDoorsInfo[i][ddCustomExterior]) {

                LoadObjectsForPlayer(playerid);
            }
            if(DDoorsInfo[i][ddVehicleAble] > 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
                SetVehiclePos(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorX],DDoorsInfo[i][ddExteriorY],DDoorsInfo[i][ddExteriorZ]);
                SetVehicleZAngle(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorA]);
                SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorVW]);
                LinkVehicleToInterior(GetPlayerVehicleID(playerid), DDoorsInfo[i][ddExteriorInt]);
            }
            else {
                SetPlayerPos(playerid,DDoorsInfo[i][ddExteriorX],DDoorsInfo[i][ddExteriorY],DDoorsInfo[i][ddExteriorZ]);
                SetPlayerFacingAngle(playerid, DDoorsInfo[i][ddExteriorA]);
                SetCameraBehindPlayer(playerid);
            }
            return Streamer_UpdateEx(playerid, DDoorsInfo[i][ddInteriorX],DDoorsInfo[i][ddInteriorY],DDoorsInfo[i][ddInteriorZ]);
        }
    }
    for(new i = 0; i < sizeof(HouseInfo); i++) {
        if(IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ]) && PlayerInfo[playerid][pVW] == i+6000)
		{
		    if(PlayerInfo[playerid][pMask] == 1) { format(string,sizeof(string), "* Stranger exited the house."); }
  			else { format(string, sizeof(string), "* %s has exited the house.", GetPlayerNameEx(playerid)); }
			ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            if(HouseInfo[i][hCustomExterior])
			{
                LoadObjectsForPlayer(playerid);
            }
            SetPlayerPos(playerid,HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
            SetPlayerFacingAngle(playerid, HouseInfo[i][hExteriorA]);
            SetCameraBehindPlayer(playerid);
            SetPlayerVirtualWorld(playerid, 0);
            PlayerInfo[playerid][pVW] = 0;
            return Streamer_UpdateEx(playerid, HouseInfo[i][hExteriorX],HouseInfo[i][hExteriorY],HouseInfo[i][hExteriorZ]);
        }
    }
    for(new i = 0; i < sizeof(BizInfo); i++) {
        if(IsPlayerInRangeOfPoint(playerid,3,BizInfo[i][bInteriorX], BizInfo[i][bInteriorY], BizInfo[i][bInteriorZ]) && PlayerInfo[playerid][pVW] == i+100)
		{
		    if(PlayerInfo[playerid][InBusiness] != 0)
      		{
			    if(PlayerInfo[playerid][pMask] == 1) { format(string,sizeof(string), "* Stranger exited the business."); }
			    else { format(string, sizeof(string), "* %s has exited the business.", GetPlayerNameEx(playerid)); }
				ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				SetPlayerInterior(playerid,0);
	            PlayerInfo[playerid][pInt] = 0;
	            if(BizInfo[i][bCustomExterior])
				{
	                LoadObjectsForPlayer(playerid);
	            }
	            SetPlayerPos(playerid,BizInfo[PlayerInfo[playerid][InBusiness]][bX],BizInfo[PlayerInfo[playerid][InBusiness]][bY],BizInfo[PlayerInfo[playerid][InBusiness]][bZ]);
	            SetCameraBehindPlayer(playerid);
	            SetPlayerVirtualWorld(playerid, 0);
	            PlayerInfo[playerid][pVW] = 0;
	            PlayerInfo[playerid][InBusiness] = 0;
            	return Streamer_UpdateEx(playerid, BizInfo[i][bX],BizInfo[i][bY],BizInfo[i][bZ]);
            }
    		else
      		{
       			SetPlayerVirtualWorld(playerid, 0);
	        	SetPlayerInterior(playerid, 0);
		        SetPlayerPos(playerid, BizInfo[PlayerInfo[playerid][InBusiness]][bX], BizInfo[PlayerInfo[playerid][InBusiness]][bY], BizInfo[PlayerInfo[playerid][InBusiness]][bZ]);
 	        }
        }
    }
    new i = GetPlayerVirtualWorld(playerid);
    if(IsPlayerInRangeOfPoint(playerid, 30.0, GarageInfo[i][GarageInsideX], GarageInfo[i][GarageInsideY], GarageInfo[i][GarageInsideZ]) && GetPlayerVirtualWorld(playerid) == i)
  	{
  	    new Seat[MAX_PLAYERS], InCar[MAX_PLAYERS];
	    new vehicleid;
		if(i == 0) return SendClientMessage(playerid, COLOR_GREY, "    You are not inside a garage.");
		if(GarageInfo[i][GarageLocked]) return SendClientMessage(playerid, COLOR_GREY, "    You've been locked inside the garage, tough luck.");
		if(GetPlayerState(playerid) == 2)
     	{
			vehicleid = GetPlayerVehicleID(playerid);
			foreach(Player, j)
			{
   				if(IsPlayerInVehicle(j, vehicleid))
			    {
       				InCar[j] = vehicleid;
			        Seat[j] = GetPlayerVehicleSeat(playerid);
			        SetPlayerInterior(j, 0);
					SetPlayerVirtualWorld(j, 0);
					SetPVarInt(j, "InGarage", 0);
				}
			}
   			SetVehiclePos(vehicleid, GarageInfo[i][GarageExitX], GarageInfo[i][GarageExitY], GarageInfo[i][GarageExitZ]);
      		SetVehicleZAngle(vehicleid, GarageInfo[i][GarageExitA]);
        	SetVehicleWorld(vehicleid, 0);
         	SetVehicleInterior(vehicleid, 0);
		}
		SetPlayerPosEx(playerid, GarageInfo[i][GarageExitX], GarageInfo[i][GarageExitY], GarageInfo[i][GarageExitZ]);
		SetPlayerFacingAngle(playerid, GarageInfo[i][GarageExitA]);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		if (vehicleid != 0)
		{
  			foreach(Player, j)
			{
   				if (InCar[j] == 0) continue;
			    if (InCar[j] == vehicleid)
			    {
					PutPlayerInVehicle(j, vehicleid, Seat[j]);
				}
			}
			PutPlayerInVehicle(playerid, vehicleid, 0);
		}
		SetPVarInt(playerid, "InGarage", 0);
		return Streamer_UpdateEx(playerid, GarageInfo[i][GarageExitX], GarageInfo[i][GarageExitY], GarageInfo[i][GarageExitZ]);
	}
    // Hitman HQ
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, 1277.019165, -758.428771, 5080.750000) && (GetPlayerVirtualWorld(playerid) == 666420))
	{
        if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
		{
            SetPlayerVirtualWorld(playerid, 0);
            PlayerInfo[playerid][pVW] = 0;
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 1938.545898, 165.629531, 37.281250);
            SetPlayerFacingAngle(playerid, 338.54);
            SetCameraBehindPlayer(playerid);
        }
    }

    // The Lubu Gentlemen's Club
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, -1077.946533, 613.206665, 1116.507812) && (GetPlayerVirtualWorld(playerid) == 373737))
	{
		format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
		ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

		SetPlayerVirtualWorld(playerid, 0);
   		PlayerInfo[playerid][pVW] = 0;
     	SetPlayerInterior(playerid, 0);
      	PlayerInfo[playerid][pInt] = 0;
      	SetPlayerPos(playerid, 511.817230, -1510.971679, 14.566996);
       	SetPlayerFacingAngle(playerid, 272.11);
       	SetCameraBehindPlayer(playerid);

    }

    // The Tableau Club
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 308.045654, 1053.886840, 1098.540039) && (GetPlayerVirtualWorld(playerid) == 363636))
	{
		format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
		ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

		SetPlayerVirtualWorld(playerid, 0);
   		PlayerInfo[playerid][pVW] = 0;
     	SetPlayerInterior(playerid, 0);
      	PlayerInfo[playerid][pInt] = 0;
      	SetPlayerPos(playerid, 561.802795, -1506.722412, 14.548986);
       	SetPlayerFacingAngle(playerid, 86.78);
       	SetCameraBehindPlayer(playerid);

    }
    // The Tableau Club (VIP ROOM)
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 293.066436, 1029.785278, 1104.560058) && (GetPlayerVirtualWorld(playerid) == 363636))
	{
 		SetPlayerVirtualWorld(playerid, 363636);
   		PlayerInfo[playerid][pVW] = 363636;
     	SetPlayerInterior(playerid, 36);
      	PlayerInfo[playerid][pInt] = 36;
      	SetPlayerPos(playerid, 307.904296, 1025.602294, 1098.540039);
       	SetPlayerFacingAngle(playerid, 264.06);
       	SetCameraBehindPlayer(playerid);
    }
    // Santa Maria Surfer's Lounge
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 271.742034, 1074.419677, 5096.750000) && (GetPlayerVirtualWorld(playerid) == 353535))
	{
		format(string, sizeof(string), "* %s has exited the building.", GetPlayerNameEx(playerid));
		ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

		SetPlayerVirtualWorld(playerid, 0);
   		PlayerInfo[playerid][pVW] = 0;
     	SetPlayerInterior(playerid, 0);
      	PlayerInfo[playerid][pInt] = 0;
      	SetPlayerPos(playerid, 387.958374, -1870.688110, 7.835937);
       	SetPlayerFacingAngle(playerid, 89.99);
       	SetCameraBehindPlayer(playerid);

    }
    // Shamal
    else if(InsideShamal[playerid] != INVALID_VEHICLE_ID && IsPlayerInRangeOfPoint(playerid,3,2.509036, 23.118730, 1199.593750))
	{
        format(string, sizeof(string), "* %s exits the Shamal airplane.", GetPlayerNameEx(playerid));
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

        if(InsideShamal[playerid] == INVALID_VEHICLE_ID || GetVehicleModel(InsideShamal[playerid]) != 519) {
            PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
            GivePlayerValidWeapon(playerid, 46, 60000);
            SetPlayerPos(playerid, 0.000000, 0.000000, 420.000000);
        }
        else {
            new Float:X, Float:Y, Float:Z;
            GetVehiclePos(InsideShamal[playerid], X, Y, Z);
            SetPlayerPos(playerid, X-4, Y-2.3, Z);

            new Float:XB, Float:YB, Float:ZB;
            GetVehiclePos(InsideShamal[playerid], XB, YB, ZB);
            if(ZB > 50.0) {
                PlayerInfo[playerid][pAGuns][GetWeaponSlot(46)] = 46;
                GivePlayerValidWeapon(playerid, 46, 60000);
            }
        }

        PlayerInfo[playerid][pVW] = 0;
        SetPlayerVirtualWorld(playerid, 0);
        PlayerInfo[playerid][pInt] = 0;
        SetPlayerInterior(playerid, 0);
        InsideShamal[playerid] = INVALID_VEHICLE_ID;
    }
    return 1;
}
main()
{
	print("\n----------------------------------");
	print("Marx Roleplay");
	print("----------------------------------\n");
}


forward OnPlayerStatsUpdate(playerid);
public OnPlayerStatsUpdate(playerid)
{
	if(GetPVarInt(playerid, "TempName") != 1 && gPlayerLogged[playerid])
	{
		new string3[64];
		new playername3[MAX_PLAYER_NAME];
		GetPlayerName(playerid, playername3, sizeof(playername3));
		format(string3, sizeof(string3), "users/%s.ini", playername3);
		new File: hFile = fopen(string3, io_write);
		new var[156];
		format(var, 156, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
		format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
		format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
		format(var, 32, "AdminName=%s\n", PlayerInfo[playerid][pAdminName]);fwrite(hFile, var);
		format(var, 32, "HitmanName=%s\n", PlayerInfo[playerid][pHitmanName]);fwrite(hFile, var);
		format(var, 32, "BanAppealer=%d\n",PlayerInfo[playerid][pBanAppealer]);fwrite(hFile, var);
		format(var, 32, "GangMod=%d\n",PlayerInfo[playerid][pGangMod]);fwrite(hFile, var);
		format(var, 32, "RefundMod=%d\n",PlayerInfo[playerid][pRefundMod]);fwrite(hFile, var);
		format(var, 32, "Donator=%d\n",PlayerInfo[playerid][pDonator]);fwrite(hFile, var);
		format(var, 32, "Band=%d\n",PlayerInfo[playerid][pBanned]);fwrite(hFile, var);
		format(var, 32, "WalkStyle=%d\n",PlayerInfo[playerid][pWalkStyle]);fwrite(hFile, var);
		format(var, 32, "PermBand=%d\n",PlayerInfo[playerid][pPermaBanned]);fwrite(hFile, var);
		format(var, 32, "Disabled=%d\n",PlayerInfo[playerid][pDisabled]);fwrite(hFile, var);
		format(var, 32, "IP=%s\n",PlayerInfo[playerid][pIP]);fwrite(hFile, var);
		format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
		format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
		format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
		format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
		format(var, 32, "Skin=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
		format(var, 32, "Mask=%d\n",PlayerInfo[playerid][pMask]);fwrite(hFile, var);
		format(var, 32, "HasBoughtMask=%d\n",PlayerInfo[playerid][pHasBoughtMask]);fwrite(hFile, var);
		format(var, 32, "SPos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
		format(var, 32, "SPos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
		format(var, 32, "SPos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
		format(var, 32, "SPos_r=%.1f\n",PlayerInfo[playerid][pPos_r]);fwrite(hFile, var);
		format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
		format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pRespect]);fwrite(hFile, var);
		format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pNumber]);fwrite(hFile, var);
		format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
		format(var, 32, "Gang=%d\n",PlayerInfo[playerid][pGang]);fwrite(hFile, var);
		format(var, 32, "Faction=%d\n",PlayerInfo[playerid][pFaction]);fwrite(hFile, var);
		format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
		format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
		format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
		format(var, 32, "Job2=%d\n",PlayerInfo[playerid][pJob2]);fwrite(hFile, var);
		format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
		format(var, 32, "SpawnArmor=%.1f\n",PlayerInfo[playerid][pSarmor]);fwrite(hFile, var);
		format(var, 32, "Cash=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
		format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pBank]);fwrite(hFile, var);
		format(var, 32, "Insurance=%d\n",PlayerInfo[playerid][pInsurance]);fwrite(hFile, var);
		format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
		format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
		format(var, 32, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
		GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
		format(var, 32, "Health=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
		GetPlayerArmour(playerid,PlayerInfo[playerid][pArmor]);
		format(var, 32, "Armor=%.1f\n",PlayerInfo[playerid][pArmor]);fwrite(hFile, var);
		format(var, 32, "Pot=%d\n",PlayerInfo[playerid][pPot]);fwrite(hFile, var);
		format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var);
		format(var, 32, "Radio=%d\n",PlayerInfo[playerid][pRadio]);fwrite(hFile, var);
		format(var, 32, "RadioFreq=%d\n",PlayerInfo[playerid][pRadioFreq]);fwrite(hFile, var);
		format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
		format(var, 32, "Dice=%d\n",PlayerInfo[playerid][pDice]);fwrite(hFile, var);
		format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
		format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
		format(var, 32, "Rope=%d\n",PlayerInfo[playerid][pRope]);fwrite(hFile, var);
		format(var, 32, "Cigars=%d\n",PlayerInfo[playerid][pCigar]);fwrite(hFile, var);
		format(var, 32, "Sprunk=%d\n",PlayerInfo[playerid][pSprunk]);fwrite(hFile, var);
		format(var, 32, "Spraycan=%d\n",PlayerInfo[playerid][pSpraycan]);fwrite(hFile, var);
		format(var, 32, "House=%d\n",PlayerInfo[playerid][pHouse]);fwrite(hFile, var);
		format(var, 32, "House2=%d\n",PlayerInfo[playerid][pHouse2]);fwrite(hFile, var);
		format(var, 32, "Business=%d\n",PlayerInfo[playerid][pBusiness]);fwrite(hFile, var);
		format(var, 32, "Renting=%d\n",PlayerInfo[playerid][pRenting]);fwrite(hFile, var);
		format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
		format(var, 32, "VirtualWorld=%d\n",PlayerInfo[playerid][pVW]);fwrite(hFile, var);
		format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
		format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
		for(new s = 0; s < 12; s++)
		{
			format(var, 32, "Gun%d=%d\n", s, PlayerInfo[playerid][pGuns][s]);fwrite(hFile, var);
		}
		format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
		format(var, 32, "Hospital=%d\n",PlayerInfo[playerid][pHospital]);fwrite(hFile, var);
		format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
		format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
		format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
		format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
		format(var, 32, "SmugglerSkill=%d\n",PlayerInfo[playerid][pSmugSkill]);fwrite(hFile, var);
		format(var, 32, "ArmsSkill=%d\n",PlayerInfo[playerid][pArmsSkill]);fwrite(hFile, var);
		format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
		format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
		format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
		format(var, 32, "TruckSkill=%d\n",PlayerInfo[playerid][pTruckSkill]);fwrite(hFile, var);
		format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
		//format(var, 32, "CraftSkill=%d\n",PlayerInfo[playerid][pCraftSkill]);fwrite(hFile, var);
		format(var, 32, "LawyerTime=%d\n",PlayerInfo[playerid][pLawyerTime]);fwrite(hFile, var);
		format(var, 32, "LawyerFreeTime=%d\n",PlayerInfo[playerid][pLawyerFreeTime]);fwrite(hFile, var);
		format(var, 32, "DrugsTime=%d\n",PlayerInfo[playerid][pDrugsTime]);fwrite(hFile, var);
		format(var, 32, "MechTime=%d\n",PlayerInfo[playerid][pMechTime]);fwrite(hFile, var);
		format(var, 32, "SexTime=%d\n",PlayerInfo[playerid][pSexTime]);fwrite(hFile, var);
		format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
		format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
		format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
		format(var, 32, "pWExists=%d\n",PlayerInfo[playerid][pWeedObject]);fwrite(hFile, var);
		format(var, 32, "pWX=%f\n",PlayerInfo[playerid][pWeedPos][0]);fwrite(hFile, var);
		format(var, 32, "pWY=%f\n",PlayerInfo[playerid][pWeedPos][1]);fwrite(hFile, var);
		format(var, 32, "pWZ=%f\n",PlayerInfo[playerid][pWeedPos][2]);fwrite(hFile, var);
		format(var, 32, "pWVW=%d\n",PlayerInfo[playerid][pWeedVW]);fwrite(hFile, var);
		format(var, 32, "pWInt=%d\n",PlayerInfo[playerid][pWeedInt]);fwrite(hFile, var);
		format(var, 32, "pWValue=%d\n",PlayerInfo[playerid][pWeedGrowth]);fwrite(hFile, var);
		format(var, 32, "pWSeeds=%d\n",PlayerInfo[playerid][pWSeeds]);fwrite(hFile, var);
		format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
		format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
		format(var, 32, "FightingStyle=%d\n",PlayerInfo[playerid][pFightStyle]);fwrite(hFile, var);
		format(var, 32, "Screwdriver=%d\n",PlayerInfo[playerid][pScrewdriver]);fwrite(hFile, var);
		format(var, 32, "Smslog=%d\n",PlayerInfo[playerid][pSmslog]);fwrite(hFile, var);
		format(var, 32, "Wristwatch=%d\n",PlayerInfo[playerid][pWristwatch]);fwrite(hFile, var);
		format(var, 32, "Tire=%d\n",PlayerInfo[playerid][pTire]);fwrite(hFile, var);
		format(var, 32, "Firstaid=%d\n",PlayerInfo[playerid][pFirstaid]);fwrite(hFile, var);
		format(var, 32, "Rccam=%d\n",PlayerInfo[playerid][pRccam]);fwrite(hFile, var);
		format(var, 32, "Receiver=%d\n",PlayerInfo[playerid][pReceiver]);fwrite(hFile, var);
		format(var, 32, "GPS=%d\n",PlayerInfo[playerid][pGPS]);fwrite(hFile, var);
		format(var, 32, "Sweep=%d\n",PlayerInfo[playerid][pSweep]);fwrite(hFile, var);
		format(var, 32, "SweepLeft=%d\n",PlayerInfo[playerid][pSweepLeft]);fwrite(hFile, var);
		format(var, 32, "Bugged=%d\n",PlayerInfo[playerid][pBugged]);fwrite(hFile, var);
		for(new v = 0; v < MAX_PLAYERVEHICLES; v++)
		{
			format(var, 32, "pv%dPosX=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosX]);fwrite(hFile, var);
			format(var, 32, "pv%dPosY=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosY]);fwrite(hFile, var);
			format(var, 32, "pv%dPosZ=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosZ]);fwrite(hFile, var);
			format(var, 32, "pv%dPosAngle=%.1f\n", v, PlayerVehicleInfo[playerid][v][pvPosAngle]);fwrite(hFile, var);
			format(var, 32, "pv%dModelId=%d\n", v, PlayerVehicleInfo[playerid][v][pvModelId]);fwrite(hFile, var);
			format(var, 32, "pv%dLock=%d\n", v, PlayerVehicleInfo[playerid][v][pvLock]);fwrite(hFile, var);
			format(var, 32, "pv%dLocked=%d\n", v, PlayerVehicleInfo[playerid][v][pvLocked]);fwrite(hFile, var);
			format(var, 32, "pv%dPaintJob=%d\n", v, PlayerVehicleInfo[playerid][v][pvPaintJob]);fwrite(hFile, var);
			format(var, 32, "pv%dColor1=%d\n", v, PlayerVehicleInfo[playerid][v][pvColor1]);fwrite(hFile, var);
	 		format(var, 32, "pv%dColor2=%d\n", v, PlayerVehicleInfo[playerid][v][pvColor2]);fwrite(hFile, var);
	 		format(var, 32, "pv%dPrice=%d\n", v, PlayerVehicleInfo[playerid][v][pvPrice]);fwrite(hFile, var);
		 	format(var, 32, "pv%dTicket=%d\n", v, PlayerVehicleInfo[playerid][v][pvTicket]);fwrite(hFile, var);
		 	format(var, 32, "pv%dWeapon0=%d\n", v, PlayerVehicleInfo[playerid][v][pvWeapons][0]);fwrite(hFile, var);
		 	format(var, 32, "pv%dWeapon1=%d\n", v, PlayerVehicleInfo[playerid][v][pvWeapons][1]);fwrite(hFile, var);
		 	format(var, 32, "pv%dWeapon2=%d\n", v, PlayerVehicleInfo[playerid][v][pvWeapons][2]);fwrite(hFile, var);
		 	format(var, 32, "pv%dWepUpgrade=%d\n", v, PlayerVehicleInfo[playerid][v][pvWepUpgrade]);fwrite(hFile, var);
			format(var, 32, "pv%dFuel=%.2f\n", v, PlayerVehicleInfo[playerid][v][pvFuel]);fwrite(hFile, var);
			format(var, 32, "pv%dImpound=%d\n", v, PlayerVehicleInfo[playerid][v][pvImpounded]);fwrite(hFile, var);
			format(var, 32, "pv%dSpawned=%d\n", v, PlayerVehicleInfo[playerid][v][pvSpawned]);fwrite(hFile, var);
			format(var, 32, "pv%dDisabled=%d\n", v, PlayerVehicleInfo[playerid][v][pvDisabled]);fwrite(hFile, var);
			format(var, 32, "pv%dNeon=%d\n", v, PlayerVehicleInfo[playerid][v][pvNeon]);fwrite(hFile, var);
			format(var, 32, "pv%dInterior=%d\n", v, PlayerVehicleInfo[playerid][v][pvInterior]);fwrite(hFile, var);
			format(var, 32, "pv%dVirtualWorld=%d\n", v, PlayerVehicleInfo[playerid][v][pvVirtualWorld]);fwrite(hFile, var);
	 		format(var, 128, "pv%dNumPlate=%s\n", v, PlayerVehicleInfo[playerid][v][pvNumberPlate]);fwrite(hFile, var);
 			for(new m = 0; m < MAX_MODS; m++)
  			{
   				format(var, 32, "pv%dMod%d=%d\n", v, m, PlayerVehicleInfo[playerid][v][pvMods][m]);fwrite(hFile, var);
   			}
    		//format(var, 32, "pv%dAllowedPlayer=%s\n", v, PlayerVehicleInfo[playerid][v][pvAllowPlayer]);fwrite(hFile, var);
   		}
		format(var, 32, "On‌Duty=%d\n",PlayerInfo[playerid][pDuty]);fwrite(hFile, var);
		format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
		format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
		format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
		format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
		format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);
		format(var, 32, "Division=%d\n",PlayerInfo[playerid][pDivision]);fwrite(hFile, var);
		format(var, 32, "TicketTime=%d\n",PlayerInfo[playerid][pTicketTime]);fwrite(hFile, var);
		format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
		format(var, 32, "ContractBy=%s\n",PlayerInfo[playerid][pContractBy]);fwrite(hFile, var);
		format(var, 64, "ContractDetail=%s\n",PlayerInfo[playerid][pContractDetail]);fwrite(hFile, var);
		format(var, 32, "Bombs=%d\n",PlayerInfo[playerid][pBombs]);fwrite(hFile, var);
		format(var, 32, "CHits=%d\n",PlayerInfo[playerid][pCHits]);fwrite(hFile, var);
		format(var, 32, "FHits=%d\n",PlayerInfo[playerid][pFHits]);fwrite(hFile, var);
		format(var, 32, "PrisonedBy=%s\n", PlayerInfo[playerid][pPrisonedBy]);fwrite(hFile, var);
		format(var, 128, "PrisonReason=%s\n", PlayerInfo[playerid][pPrisonReason]);fwrite(hFile, var);
		format(var, 32, "AcceptReport=%d\n",PlayerInfo[playerid][pAcceptReport]);fwrite(hFile, var);
		format(var, 32, "TrashReport=%d\n",PlayerInfo[playerid][pTrashReport]);fwrite(hFile, var);
		format(var, 32, "Accent=%d\n",PlayerInfo[playerid][pAccent]);fwrite(hFile, var);
		format(var, 32, "NewMuted=%d\n",PlayerInfo[playerid][pNMute]);fwrite(hFile, var);
		format(var, 32, "NewMutedTotal=%d\n",PlayerInfo[playerid][pNMuteTotal]);fwrite(hFile, var);
		format(var, 32, "AdMuted=%d\n",PlayerInfo[playerid][pADMute]);fwrite(hFile, var);
		format(var, 32, "AdMutedTotal=%d\n",PlayerInfo[playerid][pADMuteTotal]);fwrite(hFile, var);
		format(var, 32, "ReportMuted=%d\n",PlayerInfo[playerid][pRMuted]);fwrite(hFile, var);
		format(var, 32, "ReportMutedTotal=%d\n",PlayerInfo[playerid][pRMutedTotal]);fwrite(hFile, var);
		format(var, 32, "ReportMutedTime=%d\n",PlayerInfo[playerid][pRMutedTime]);fwrite(hFile, var);
		format(var, 32, "Speedo=%d\n",PlayerInfo[playerid][pSpeedo]);fwrite(hFile, var);
		format(var, 32, "GCMuted=%d\n",PlayerInfo[playerid][pGCMuted]);fwrite(hFile, var);
		format(var, 32, "GCMutedTime=%d\n",PlayerInfo[playerid][pGCMutedTime]);fwrite(hFile, var);
		format(var, 32, "CallsAccepted=%d\n", PlayerInfo[playerid][pCallsAccepted]);fwrite(hFile, var);
		format(var, 32, "PatientsDelivered=%d\n",PlayerInfo[playerid][pPatientsDelivered]);fwrite(hFile, var);
		format(var, 32, "TriageTime=%d\n",PlayerInfo[playerid][pTriageTime]);fwrite(hFile, var);
		format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
		format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
		for(new v = 0; v < MAX_PLAYERTOYS; v++)
		{
			format(var, 32, "pt%dModelID=%d\n", v, PlayerToyInfo[playerid][v][ptModelID]);fwrite(hFile, var);
			format(var, 32, "pt%dBone=%d\n", v, PlayerToyInfo[playerid][v][ptBone]);fwrite(hFile, var);
 			format(var, 32, "pt%dPosX=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosX]);fwrite(hFile, var);
			format(var, 32, "pt%dPosY=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosY]);fwrite(hFile, var);
			format(var, 32, "pt%dPosZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosZ]);fwrite(hFile, var);
			format(var, 32, "pt%dRotX=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotX]);fwrite(hFile, var);
			format(var, 32, "pt%dRotY=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotY]);fwrite(hFile, var);
			format(var, 32, "pt%dRotZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotZ]);fwrite(hFile, var);
			format(var, 32, "pt%dScaX=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleX]);fwrite(hFile, var);
			format(var, 32, "pt%dScaY=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleY]);fwrite(hFile, var);
			format(var, 32, "pt%dScaZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleZ]);fwrite(hFile, var);
   		}
   		format(var, 256, "KillLog0=%s\n",PlayerInfo[playerid][pKillLog0]);fwrite(hFile, var);
   		format(var, 256, "KillLog1=%s\n",PlayerInfo[playerid][pKillLog1]);fwrite(hFile, var);
    	format(var, 256, "KillLog2=%s\n",PlayerInfo[playerid][pKillLog2]);fwrite(hFile, var);
    	format(var, 256, "KillLog3=%s\n",PlayerInfo[playerid][pKillLog3]);fwrite(hFile, var);
   		format(var, 256, "KillLog4=%s\n",PlayerInfo[playerid][pKillLog4]);fwrite(hFile, var);
   		format(var, 256, "KillLog5=%s\n",PlayerInfo[playerid][pKillLog5]);fwrite(hFile, var);
   		format(var, 256, "KillLog6=%s\n",PlayerInfo[playerid][pKillLog6]);fwrite(hFile, var);
   		format(var, 256, "KillLog7=%s\n",PlayerInfo[playerid][pKillLog7]);fwrite(hFile, var);
    	format(var, 256, "KillLog8=%s\n",PlayerInfo[playerid][pKillLog8]);fwrite(hFile, var);
   		format(var, 256, "KillLog9=%s\n",PlayerInfo[playerid][pKillLog9]);fwrite(hFile, var);
   		format(var, 128, "Flag=%s\n", PlayerInfo[playerid][pFlag]);fwrite(hFile, var);
   		format(var, 128, "ReferredBy=%s\n", PlayerInfo[playerid][pReferredBy]);fwrite(hFile, var);
   		format(var, 32, "RefTokens=%d\n",PlayerInfo[playerid][pRefTokens]);fwrite(hFile, var);
   		format(var, 32, "RefTokensOffline=%d\n",PlayerInfo[playerid][pRefTokensOffline]);fwrite(hFile, var);
   		format(var, 32, "Helper=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
   		format(var, 32, "GangMod=%d\n",PlayerInfo[playerid][pGangMod]);fwrite(hFile, var);
   		format(var, 32, "LiveBanned=%d\n",PlayerInfo[playerid][pLiveBanned]);fwrite(hFile, var);
   		format(var, 32, "Load=%d\n",PlayerInfo[playerid][pPhoneCredits]);fwrite(hFile, var);
   		format(var, 32, "Suitcase=%d\n",PlayerInfo[playerid][pSuitcase]);fwrite(hFile, var);
		format(var, 32, "Suitcasecash=%d\n",PlayerInfo[playerid][pSuitcasecash]);fwrite(hFile, var);
		format(var, 32, "Suitcasecrack=%d\n",PlayerInfo[playerid][pSuitcasecrack]);fwrite(hFile, var);
		format(var, 32, "Suitcasepot=%d\n",PlayerInfo[playerid][pSuitcasepot]);fwrite(hFile, var);
		format(var, 32, "Suitcasemats=%d\n",PlayerInfo[playerid][pSuitcasemats]);fwrite(hFile, var);
		format(var, 32, "Eggs=%d\n",PlayerInfo[playerid][pEggs]);fwrite(hFile, var);
		format(var, 32, "Gascan=%d\n",PlayerInfo[playerid][pGascan]);fwrite(hFile, var);
		format(var, 32, "InGarage=%d\n",PlayerInfo[playerid][InGarage]);fwrite(hFile, var);
		format(var, 32, "DonatorExpire=%d\n",PlayerInfo[playerid][pDonatorExpire]);fwrite(hFile, var);
		format(var, 32, "Garage=%d\n",PlayerInfo[playerid][pGarage]);fwrite(hFile, var);
		format(var, 32, "ConnectSeconds=%d\n",PlayerInfo[playerid][pConnectSeconds]);fwrite(hFile, var);
		format(var, 32, "Pills=%d\n",PlayerInfo[playerid][pPills]);fwrite(hFile, var);
		format(var, 32, "Crew1=%d\n",PlayerInfo[playerid][pCrew1]);fwrite(hFile, var);
		format(var, 32, "Crew2=%d\n",PlayerInfo[playerid][pCrew2]);fwrite(hFile, var);
		format(var, 32, "Crew3=%d\n",PlayerInfo[playerid][pCrew3]);fwrite(hFile, var);
		fclose(hFile);
	}
	return 1;
}
Reply
#6

This one is whole /enter /exit
i fix y button but its bugg when some one press it so he enter suddenly exit
Reply
#7

can some on answer please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)