if(strcmp(cmd, "/setpos", true) == 0) //
{
if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, -1, "У вас нет прав на использование этой команды!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new FloatlX = floatstr(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new FloatlY = floatstr(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new FloatlZ = floatstr(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new plInt = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new plWorkd = strval(tmp);
SetPlayerPos(playerid,plX,plY,plZ);
SetPlayerInterior(playerid,plInt);
SetPlayerVirtualWorld(playerid,plWorkd);
SendClientMessage(playerid, COLOR_GRAD2, "Ваша позиция изменена");
return 1;
}
С помощью этой команды вы сможете сменить свою позицию. Это больше всего надо когда делаешь маппинг.
{
if(PlayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, -1, "У вас нет прав на использование этой команды!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new FloatlX = floatstr(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new FloatlY = floatstr(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new FloatlZ = floatstr(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new plInt = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /setpos [x] [y] [z] [int] [world]");
new plWorkd = strval(tmp);
SetPlayerPos(playerid,plX,plY,plZ);
SetPlayerInterior(playerid,plInt);
SetPlayerVirtualWorld(playerid,plWorkd);
SendClientMessage(playerid, COLOR_GRAD2, "Ваша позиция изменена");
return 1;
}
С помощью этой команды вы сможете сменить свою позицию. Это больше всего надо когда делаешь маппинг.
Последнее редактирование модератором: