Enter City Hall problem... +REP
#2

Код:
new cityhall;
OnGameModeInit

Код:
cityhall= CreatePickup(1239, 23, 119,1458.8438,-1012.3053,26.8438,179.3265, -1);
OnPlayerPickUpPickup(playerid, pickupid)

Код:
if (pickupid == cityhall)
    {
        // Something here like gametextforplayer or sendclientmessage or setplayerpos
    }
And you need to make a enter command.

Код:
if(strcmp(cmdtext, "/enter", true) == 0)
    {
	 if PlayerToPoint(5,playerid,1458.8438,-1012.3053,26.8438)
	{
	SetPlayerPos(playerid,387.5417,173.6052,1008.3828);
	SetPlayerInterior(playerid, Interior ID);
	return 1;
	}
	}
And exit command

Код:
if(strcmp(cmdtext, "/exit", true) == 0)
    {
	 if PlayerToPoint(5,playerid,387.5417,173.6052,1008.3828)
	{
	SetPlayerPos(playerid,1458.8438,-1012.3053,26.8438);
	SetPlayerInterior(playerid, 0);
	return 1;
	}
	}
Reply


Messages In This Thread
Enter City Hall problem... +REP - by TheMightyEddy - 01.04.2012, 23:20
Re: Enter City Hall problem... +REP - by TzAkS. - 01.04.2012, 23:50
Re: Enter City Hall problem... +REP - by TheMightyEddy - 02.04.2012, 00:13
Re: Enter City Hall problem... +REP - by TzAkS. - 02.04.2012, 00:53
Re: Enter City Hall problem... +REP - by TheMightyEddy - 02.04.2012, 01:40
Re: Enter City Hall problem... +REP - by TheMightyEddy - 02.04.2012, 03:25
Re: Enter City Hall problem... +REP - by TzAkS. - 02.04.2012, 03:55
Re: Enter City Hall problem... +REP - by TheMightyEddy - 02.04.2012, 04:25
Re: Enter City Hall problem... +REP - by TzAkS. - 02.04.2012, 04:27
Re: Enter City Hall problem... +REP - by TheMightyEddy - 02.04.2012, 04:34

Forum Jump:


Users browsing this thread: 1 Guest(s)