Need Help . Add FS in Gamemodel .have Imgur.
#2

Код HTML:
public OnPlayerEnterCheckpoint(playerid)
{
    if(BuilderCP[playerid] == 1)
	{
		DisablePlayerCheckpoint(playerid);
		new randobj = random(3);
		if(randobj == 0) {
			SetPlayerAttachedObject( playerid, 0, 2060, 1, 0.094999, 0.359999, -0.049999, 2.4, -90.3, 0.000000, 0.865, 0.896999, 1.162,1,0 );//0.935883, 1.000000, 0.508070 );
		}
		else if(randobj == 1) {
			SetPlayerAttachedObject( playerid, 0, 1271, 1, 0.270999, 0.601999, 0, 0, 0, 0, 1, 1, 1, 0, 0);
		}
		else if(randobj == 2) {
			SetPlayerAttachedObject( playerid, 0, 1353, 1, 0.238547, 0.448155, 0.000000, 277.985870, 87.919158, 352.250915, 0.317783, 1.000000, 0.308136 );
		}
		else if(randobj == 3) {
	 		SetPlayerAttachedObject(playerid, 5, 2060, 1, 0.076312, 0.437522, 0.033127, 108.700759, 77.424743, -101.376228, 1.025472, 1.000000, 1.000000);
		}

		new x = random(3);
		if(x == 0 || x == 1) {
			SetPlayerCheckpoint(playerid, 2164.1389, -2270.1873, 13.3207, 2.0);
		}
		if(x == 2 || x == 3) {
			SetPlayerCheckpoint(playerid, 2156.5710, -2278.0015, 13.3228, 2.0);
		}

		BuilderCP[playerid] = 2;
		SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
	}
	else if(BuilderCP[playerid] == 2)
	{
		DisablePlayerCheckpoint(playerid);
		RemovePlayerAttachedObject(playerid,0);
	 	ClearAnimations(playerid);

		new x = random(3);
		if(x == 0) {
			SetPlayerCheckpoint(playerid, 2228.3660,-2251.5205,13.5547, 2.0);
		}
		if(x == 1) {
			SetPlayerCheckpoint(playerid, 2168.57, -2255.35, 13.03, 2.0);
		}
		if(x == 2 || x == 3) {
			SetPlayerCheckpoint(playerid, 2213.79, -2284.90, 15.15, 2.0);
		}
		SetPlayerSpecialAction(playerid, 0);
        BuilderCP[playerid] = 1;

	    new
			message[256],
	    	salar = 5000 + random(5000);

	//	format(message, sizeof(message), "~g~+$%d", salar);
		GameTextForPlayer(playerid, message, 2000, 1);
		GivePlayerMoney(playerid, salar);*/
	}
	return 1;
}
Reply


Messages In This Thread
Need Help . Add FS in Gamemodel .have Imgur. - by ongnung147 - 04.11.2016, 09:53
Re: Need Help . Add FS in Gamemodel .have Imgur. - by ongnung147 - 04.11.2016, 09:56
Re: Need Help . Add FS in Gamemodel .have Imgur. - by Darkers - 04.11.2016, 10:02
Re: Need Help . Add FS in Gamemodel .have Imgur. - by ongnung147 - 04.11.2016, 10:06
Re: Need Help . Add FS in Gamemodel .have Imgur. - by Darkers - 04.11.2016, 10:10
Re: Need Help . Add FS in Gamemodel .have Imgur. - by ongnung147 - 04.11.2016, 10:13
Re: Need Help . Add FS in Gamemodel .have Imgur. - by ongnung147 - 04.11.2016, 10:16

Forum Jump:


Users browsing this thread: 2 Guest(s)