[Help] Jatpack
#1

How can I make command to give Jatpack ?

I think I know how to start but i don't know how to finish cmd...

I have this cmd for Admins, but with this cmd only admin can spawn Jatpack to him

pawn Код:
if(strcmp(cmd,"/jetpack",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "Enjoy the jetpack!");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
                return 1;
            }
        }
    }
And I wanna make That only player who's admin lvl4 can give jatpack to player... But im confuzed when I try to make that script... :S
Reply
#2

Quote:
Originally Posted by Alex_Valde
Посмотреть сообщение
How can I make command to give Jatpack ?

I think I know how to start but i don't know how to finish cmd...

I have this cmd for Admins, but with this cmd only admin can spawn Jatpack to him

pawn Код:
if(strcmp(cmd,"/jetpack",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "Enjoy the jetpack!");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
                return 1;
            }
        }
    }
And I wanna make That only player who's admin lvl4 can give jatpack to player... But im confuzed when I try to make that script... :S
go to the wiki and search for sscanf and dcmd
Reply
#3

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
go to the wiki and search for sscanf and dcmd
LOL...Thanks!
Reply
#4

Quote:
Originally Posted by Alex_Valde
Посмотреть сообщение
LOL...Thanks!
Ur welcome
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)