1 post in this topic

Сейчас сделаем команду, в которой сможете посмотреть весь список авто GTA.

В public OnPlayerCommandText(playerid, cmdtext[])
 

Спойлер

 if(strcmp(cmd, "/vehl", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
                if (Player[playerid][pAdmin] < 31) return SendClientMessage(playerid, COLOR_GREY, "Нет прав, на использование команды.");
                        SendClientMessage(playerid, TEAM_VAGOS_COLOR, "-----------ID's транспорта-----------");
            SendClientMessage(playerid, COLOR_WHITE, "Машины: Калина (411) | Turismo (451) | Banshee (429) | Cheetah (415) | Bullet (541) | Buffalo (402) | Washington (421)");
            SendClientMessage(playerid, COLOR_RED, "Вертолеты: Maverick (487) | Hunter (425) | Sea Sparrow (447) | Sparrow (469) | Police Maveirck (497) | News (488)");
            SendClientMessage(playerid, COLOR_ORANGE, "Самолеты: Hydra (520) | Shamal (519) | AT-400 [AIRPORTS] (577) | Andromeda [AIRPORTS] (592) | Rustler (476)");
            SendClientMessage(playerid, TEAM_GROVE_COLOR, "Мото и вело траспорт.: PCJ-600 (461) | FCR-400 (521) | Sanchez (468) | NRG-400 (522) | Mountain Bike (510) | Bike (509) | BMX (481)");
            SendClientMessage(playerid, COLOR_GREEN, "Лодки: Speeder (452) | Jetmax (493) | Predator (430) | Dinghy (473)");
            SendClientMessage(playerid, COLOR_PURPLE, "?Авто гос.Фракций.: LSPD (596) | SFPD (597) | LVPD (598) | Ranger (599) |Enforcer (427) | SWAT (601) | FBI (490) | FBI T (528)");
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Другие: FireTruck (407) | Towtruck (525) | Sweeper (574) | Kart (571) | Bandito (569) | Utility (552) | Vortex (539)");
                        SendClientMessage(playerid, COLOR_YELLOW, "Другие2: Dumper (406) | Monster (556-7) | Rhino (432) | Mower (572) | Taxi (420) | Stretch (409) | SuperGT (506)");
                }
                return 1;
        }

 

Проверку на администратора меняете на свою:
if (Player[playerid][pAdmin] < 31)
либо вовсе убираете.

Автор составления : erick, 

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

Loading...
Sign in to follow this  
Followers 0