Set money at first spawn
#6

Do not work doing how you say, check this:

pawn Код:
if (PlayerInfo[playerid][pFac] == 0)//Civ Spawn
        {
            if(GetPVarInt(playerid, "FirstSpawn")) //If its the first time the player has spawned
            {
                GivePlayerMoney(playerid, 3000);
                SetPVarInt(playerid, "FirstSpawn", 1);
            }
            if(PlayerInfo[playerid][pHospital])
                {
                Hospital[playerid] = random(2);
                if(Hospital[playerid] == 0)
                    {
                        SetPlayerPos(playerid, 2253.0479,360.5177,11.5480);
                        SetPlayerCameraPos(playerid,2249.8252,101.2665,41.2377);
                        SetPlayerCameraLookAt(playerid,2270.3330,82.0429,30.0284);
                    }
                    else if(Hospital[playerid] == 1)
                    {
                        SetPlayerPos(playerid, 2253.0479,360.5177,11.5480);
                        SetPlayerCameraPos(playerid,2249.8252,101.2665,41.2377);
                        SetPlayerCameraLookAt(playerid,2270.3330,82.0429,30.0284);
                    }
                ResetZaiatWeapons(playerid);
                PlayerInfo[playerid][pFacDuty] = 0;
                SetPlayerVirtualWorld(playerid, 0);
                TogglePlayerControllable(playerid, 0);
                HospitalTime[playerid] = 30;
                if(PlayerInfo[playerid][pVIP] >= 2) HospitalTime[playerid] = 1;
                HospitalCountDown[playerid] = SetTimerEx("HospitalTimer", 1000, false, "d", playerid);
                }
            for(new i = 0; i < 13; i++)
            if(PlayerInfo[playerid][pWeapon][i]) GiveZaiatWeapon(playerid, PlayerInfo[playerid][pWeapon][i], PlayerInfo[playerid][pWeaponAmmo][i]);
            SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
            SetPlayerPos(playerid,2103.3633,-103.6316,2.2756);
            SetPlayerFacingAngle(playerid, 301.8174);
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 0);
            SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
            return 1;
            }
I've this at moneycheat:

pawn Код:
// Money Anticheat
        if(GetPlayerMoney(playerid) != PlayerInfo[playerid][pMoney])
        {
            //ResetPlayerMoney(playerid);
            GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
        }
Reply


Messages In This Thread
Set money at first spawn - by Fiore - 03.12.2012, 20:49
Re: Set money at first spawn - by WoodPecker - 03.12.2012, 20:59
Re: Set money at first spawn - by zSuYaNw - 03.12.2012, 21:03
Re: Set money at first spawn - by Fiore - 03.12.2012, 21:04
Re: Set money at first spawn - by zSuYaNw - 03.12.2012, 21:08
Re: Set money at first spawn - by Fiore - 03.12.2012, 21:12
Re: Set money at first spawn - by zSuYaNw - 03.12.2012, 21:16
Re: Set money at first spawn - by Fiore - 03.12.2012, 21:20
Re: Set money at first spawn - by zSuYaNw - 03.12.2012, 21:22
Re: Set money at first spawn - by Fiore - 03.12.2012, 21:24

Forum Jump:


Users browsing this thread: 2 Guest(s)