2 posts in this topic

В public OnPlayerCommandText

Спойлер

if(strcmp(cmd, "/tpcor", true) == 0)
{
    if(!IsPlayerConnected(playerid)) return 1;
    if(PlayerInfo[playerid][pAdmin] < 10) return SendClientMessage(playerid,COLOR_GREY,"Недоступно!");
        tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid,-1,"ИНФО: /tpcor x y z");
    new coorx;
    coorx = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid,-1,"ИНФО: /tpcor x y z");
    new coory;
    coory = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid,-1,"ИНФО: /tpcor x y z");
    new coorz;
    coorz = strval(tmp);
    SetPlayerPos(playerid,coorx,coory,coorz);
    format(string, sizeof(string), "Вы телепортировались!", coorx,coory,coorz);
    SendClientMessage(playerid, COLOR_WHITE, string);
        return 1;
}

 

 

Использование:

/tpcor 2092.7043 -2658.3269 12.3637

Без запятых!

 

Share this post


Link to post
Share on other sites

я не могу загрузить у меня в public твоем там нечего нету

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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • warrion4ik
      By warrion4ik
      При телепорте по метке она тепает под текстуры и приходится перетелепортироваться, как это можно исправить?
      Видео: https://youtu.be/FLjer8lfGc0