[Question] I make command but i need help.
#1

So i save cords and make command in pd when i type /pdtest on that door to go out on other place
But when im on that place i want to make other command to can back in pd.

This is the coords
AddPlayerClass(113,1772.5833,-1548.5011,9.9133,220.9388,0,0,0,0,0,0); // IN PD
AddPlayerClass(113,246.5147,85.2871,1003.6406,1.31 34,0,0,0,0,0,0); // OUT FROM PD

Код:
 	if(!strcmp(cmdtext, "/pdtest", true))
 	{
 	    if(IsPlayerConnected(playerid))
		{
		    if(GetPlayerState(playerid) == 1)
		    {
		        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2  || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
		        {
		            if(PlayerToPoint(1.0,playerid,246.5236,88.0076,1003.6406))
		            {
		            	SetPlayerPos(playerid, 1772.2122,-1547.8116,9.9074);
		            	GameTextForPlayer(playerid, "~w~PDTest",5000,1);
						SetPlayerInterior(playerid,0);
						PlayerInfo[playerid][pInt] = 0;
					}
		        }
		    }
		}
		return 1;
 	}
Please help me fast.!
Reply


Messages In This Thread
[Question] I make command but i need help. - by GBLTeam - 30.08.2010, 14:49
Re: [Question] I make command but i need help. - by GBLTeam - 30.08.2010, 16:03
Re: [Question] I make command but i need help. - by Voldemort - 30.08.2010, 16:17
Re: [Question] I make command but i need help. - by GBLTeam - 30.08.2010, 16:58
Re: [Question] I make command but i need help. - by Bumbis - 30.08.2010, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)