Скрипты и моды для CRMP
Вы хотите отреагировать на этот пост ? Создайте аккаунт всего в несколько кликов или войдите на форум.

/tpcor (ТП по координатам)

Перейти вниз

/tpcor (ТП по координатам) Empty /tpcor (ТП по координатам)

Сообщение  Rush Ср Окт 07, 2015 8:05 pm

В 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;
}

Rush пишет:Использование:
/tpcor 2092.7043 -2658.3269 12.3637
Без запятых!
Rush
Rush

Сообщения : 201
Репутация : 46
Дата регистрации : 2012-12-10
Возраст : 26
Откуда : Россия

https://gs-games.forum2x2.com

Вернуться к началу Перейти вниз

Вернуться к началу


 
Права доступа к этому форуму:
Вы не можете отвечать на сообщения