SA-MP Forums Archive
What is the wrong? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What is the wrong? (/showthread.php?tid=182031)



What is the wrong? - Twain32 - 08.10.2010



Код:
        else
        {
            gPlayerLogged[playerid] = 1;
			SpawnPlayer(playerid);
		//	AddPlayerClass(170,1743.5160,-1862.6188,13.5761,5.0574);
			SetPlayerPos(playerid,1743.5160,-1862.6188,13.5761);
			SetPlayerFacingAngle(playerid,5.0574);
            PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
            SetPlayerScore(playerid, dini_Int(file, "Score"));
            GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
			SetPlayerSkin(playerid, dini_Int(file, "Skin"));

			GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun1], PlayerInfo[playerid][pKursun1]);
			GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun2], PlayerInfo[playerid][pKursun2]);
			GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun3], PlayerInfo[playerid][pKursun3]);
			GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun4], PlayerInfo[playerid][pKursun4]);
			SetPlayerPos(playerid,1743.5160,-1862.6188,13.5761);
			SetPlayerFacingAngle(playerid,5.0574);
			//SetPlayerCameraPos(playerid, PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid][pZ]);
			//SetPlayerCameraLookAt(playerid, PlayerInfo[playerid][pX], PlayerInfo[playerid][pY], PlayerInfo[playerid][pZ]);
			//AddPlayerClass(PlayerInfo[playerid][pSkin],1743.5160,-1862.6188,13.5761,5.0574);

        //    SendClientMessage(playerid,COLOR_RED, "[SUNUCU]: Giris yaptiniz.");
        }