/tpcor (ТП по координатам)
Страница 1 из 1
/tpcor (ТП по координатам)
В 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
Без запятых!
Страница 1 из 1
Права доступа к этому форуму:
Вы не можете отвечать на сообщения
|
|