Прыгаем, в замену /fly

Description: Готовые команды
Moderator: SJplayer

Sprite M
Topic author, Ст. сержант
Ст. сержант
Avatar
Sprite M
Topic author, Ст. сержант
Ст. сержант
Posts: 83
Joined: 5 Jun 2013
With us: 11 years 6 months

#1by Sprite » 4 Jul 2013, 12:04

Прыгаем, в замену /fly
Автор: Codydean

Code: Select all

    if (strcmp(cmd, "/banny", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 2)
            {
                new Float:px, Float:py, Float:pz, Float:pa;
                GetPlayerFacingAngle(playerid,pa);
                if(pa >= 0.0 && pa <= 22.5) //n1
                {
                    GetPlayerPos(playerid, px, py, pz);
                    SetPlayerPos(playerid, px, py+30, pz+5);
                }
                if(pa >= 332.5 && pa < 0.0) //n2
                {
                    GetPlayerPos(playerid, px, py, pz);
                    SetPlayerPos(playerid, px, py+30, pz+5);
                }
                if(pa >= 22.5 && pa <= 67.5) //nw
                {
                    GetPlayerPos(playerid, px, py, pz);
                    SetPlayerPos(playerid, px-15, py+15, pz+5);
                }
                if(pa >= 67.5 && pa <= 112.5) //w
                {
                    GetPlayerPos(playerid, px, py, pz);
                    SetPlayerPos(playerid, px-30, py, pz+5);
                }
                if(pa >= 112.5 && pa <= 157.5) //sw
                {
                    GetPlayerPos(playerid, px, py, pz);
                    SetPlayerPos(playerid, px-15, py-15, pz+5);
                }
                if(pa >= 157.5 && pa <= 202.5) //s
                {
                    GetPlayerPos(playerid, px, py, pz);
                    SetPlayerPos(playerid, px, py-30, pz+5);
                }
                if(pa >= 202.5 && pa <= 247.5)//se
                {
                    GetPlayerPos(playerid, px, py, pz);
                    SetPlayerPos(playerid, px+15, py-15, pz+5);
                }
                if(pa >= 247.5 && pa <= 292.5)//e
                {
                    GetPlayerPos(playerid, px, py, pz);
                    SetPlayerPos(playerid, px+30, py, pz+5);
                }
                if(pa >= 292.5 && pa <= 332.5)//e
                {
                    GetPlayerPos(playerid, px, py, pz);
                    SetPlayerPos(playerid, px+15, py+15, pz+5);
                }
            }
            else
            
{
                SendClientMessage(playerid, COLOR_GRAD1, "Ты не администратор");
            }
        }
        return 1;
    


Aleksandr M
Модератор
Модератор
Avatar
Aleksandr M
Модератор
Модератор
Posts: 55
Joined: 4 Jun 2013
With us: 11 years 6 months

#2by Aleksandr » 6 Jul 2013, 12:00

Порезвиться пойдёт :wink:


Return to “Команды”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest