• Страница 1 из 1
  • 1
Форум » Программирование в Pawno » Готовые команды » /tpcor - Телепорт по координатам
/tpcor - Телепорт по координатам
Добавлено 30.03.2016 в 23:38 | Сообщение №1
Сообщений: 265 Репутация: 0
Администраторы
Код
if(strcmp(cmd, "/tpcor", true) == 0)  
{  
if(IsPlayerConnected(playerid))  
{  
if (PlayerInfo [playerid][pAdmin]< 5)  
{  
SendClientMessage(playerid, COLOR_WHITE, "Вы не Администратор");  
return 1;  
}  
tmp = strtok(cmdtext, idx);  
if(!strlen(tmp))  
{  
SendClientMessage(playerid, COLOR_WHITE, "Пиши: /tpcor   [x][y][z]");  
return 1;  
}  
new coorx;  
coorx = strval(tmp);  
tmp = strtok(cmdtext, idx);  
if(!strlen(tmp))  
{  
SendClientMessage(playerid, COLOR_WHITE, "Пиши: /tpcor   [x][y][z]");  
return 1;  
}  
new coory;  
coory = strval(tmp);  
tmp = strtok(cmdtext, idx);  
if(!strlen(tmp))  
{  
SendClientMessage(playerid, COLOR_WHITE, "Пиши: /tpcor   [x][y][z]");  
return 1;  
}  
new coorz;  
coorz = strval(tmp);  
SetPlayerPos(playerid, coorx,coory,coorz);  
format(string, sizeof(string), "Вы были телепортированны на указанные вами кординаты", coorx,coory,coorz);  
SendClientMessage(playerid, COLOR_WHITE, string);  
}  
return 1;  
}

Автор: Неизвестен


Программист любитель :)
Форум » Программирование в Pawno » Готовые команды » /tpcor - Телепорт по координатам
  • Страница 1 из 1
  • 1
Поиск: