[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
#2

anyone to help?
Reply
#3

1.For this you dont need classes
2. if(!strcmp(cmdtext, "/pdtest", true)) what for !
3. we need more info
Reply
#4

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
1.For this you dont need classes
2. if(!strcmp(cmdtext, "/pdtest", true)) what for !
3. we need more info
Ah man you not understand..
But for you i make now pictures Just look it!









So i want to make a command /pdenter in that picture you look and that command to back me in PD!
Reply
#5

pawn Код:
if(!strcmp(cmdtext, "/pdenter", 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,1772.5833,-1548.5011,9.9133))
                    {
                        GameTextForPlayer(playerid, "~w~Police Department",5000,1);
                        SetPlayerInterior(playerid, 6);
                        SetPlayerPos(playerid,246.7079,66.2239,1003.6406);
                        PlayerInfo[playerid][pInt] = 6;
                    }
                }
            }
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)