SA-MP Forums Archive
[HELP] Command - 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)
+--- Thread: [HELP] Command (/showthread.php?tid=504163)



[HELP] Command - monster010 - 02.04.2014

What is wrong here?

pawn Код:
if(strcmp(cmd, "/up", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
           if(PlayerToPoint(1.0,playerid,-2212.5674,643.8956,49.4456))
           {
                if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
                {
                    SetPlayerPos(playerid,2240.1135,648.5764,74.0790);
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* You are not a Yakuza *");
                }
           }
        }
    }
    if(strcmp(cmd, "/down", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
           if(PlayerToPoint(1.0,playerid,-2236.0012,647.6078,74.0790))
           {
                if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
                {
                    SetPlayerPos(playerid,-2212.5674,643.8956,49.4456);
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "* You are not a Yakuza *");
                }
           }
        }
    }



Re: [HELP] Command - iThePunisher - 02.04.2014

tell us what is your error..


Re: [HELP] Command - monster010 - 02.04.2014

When i type the command "/up", boosts me up in than position.


Re: [HELP] Command - Bingo - 02.04.2014

Quote:
Originally Posted by monster010
Посмотреть сообщение
When i type the command "/up", boosts me up in than position.
Yes sure, You are setted as pLeader and pMember, Thats why it boosts you up when you type /up.

Try putting return 1;?


Re: [HELP] Command - monster010 - 02.04.2014

And how I to not not boosts up?


Re: [HELP] Command - Bingo - 02.04.2014

Quote:
Originally Posted by monster010
Посмотреть сообщение
And how I to not not boosts up?
Maybe,
In your server dir>/scriptfiles/.

Cant predict, Show one of your user.ini file.

Maybe something like this

Код:
Leader = 1
Member = 1
So change it to 0, Anyway nothing related to this so if you want that all people use /up and /down.

Just remove this line.
Код:
if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6)
{



Re: [HELP] Command - monster010 - 02.04.2014

SOLVED!

I have put the returns and work perfect!