SA-MP Forums Archive
[Question] I make command but i need help. - 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: [Question] I make command but i need help. (/showthread.php?tid=172528)



[Question] I make command but i need help. - GBLTeam - 30.08.2010

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.!


Re: [Question] I make command but i need help. - GBLTeam - 30.08.2010

anyone to help?


Re: [Question] I make command but i need help. - Voldemort - 30.08.2010

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


Re: [Question] I make command but i need help. - GBLTeam - 30.08.2010

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!


Re: [Question] I make command but i need help. - Bumbis - 30.08.2010

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;
    }