1 post in this topic

Как из названия ясно, команда сделает невидимым ваш автомобиль (переместит его в другой интерьер короче).

В OnPlayerCommandText.


if(strcmp(cmd, "/invVeh", true) == 0)
        new tmp[255];
        tmp = strtok(cmdtext, idx);
        if(strlen(tmp)&&IsPlayerNPC(strval(tmp))) return 1;
        if(!strlen(tmp))        SendClientMessage(playerid,COLOR_WHITE," Использование: /invVeh ID");
                if(!IsPlayerConnected(strval(tmp)))     SendClientMessage(playerid,COLOR_WHITE," Неверный ID.");
                                SendClientMessage(playerid,COLOR_WHITE," Выполнено.");
                                SendClientMessage(playerid,COLOR_WHITE,"Игрок не в авто.");
                                return 1;
        return 1;


Автор: ReSLeaR-

Edited by stibs

Share this post

Link to post
Share on other sites

Your content will need to be approved by a moderator

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

Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • GhostWill
      By GhostWill
      Первый способ с админ проверкой:
      public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) { if(pInfo[playerid][admin] != 0) return 1; SetPlayerPos(playerid,fX,fY,fZ); return 1; } Второй способ без проверки на админку:
      public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) { return SetPlayerPos(playerid,fX,fY,fZ); }