continue
Специалист
PHP:
else if(strcmp(cmd, "/gethere", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] >= 3) return SendClientMessage(playerid, COLOR_WHITE, "::: Введите: /gethere [id]");
new Float:plocx,Float:plocy,Float:plocz;
new plo;
new inter = GetPlayerInterior(playerid);
new worldd = GetPlayerVirtualWorld(playerid);
plo = ReturnUser(tmp);
if (IsPlayerConnected(plo))
{
if(plo != INVALID_PLAYER_ID)
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
if(GetPlayerState(plo) != 1 && GetPlayerState(plo) != 2 && GetPlayerState(plo) != 3) return SendClientMessage(playerid, COLOR_GRAD1, "Игрок не вступил в игру!");
if(PlayerEx[plo][VarEx] > 1) return SendClientMessage(playerid, COLOR_GREY, "- Данный игрок AFK");
GetPlayerPos(playerid, plocx, plocy, plocz);
if(PlayerInfo[playerid][pInt] > 0)
{
SetPlayerInterior(plo,inter);
PlayerInfo[plo][pInt] = inter;
PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal];
SetPlayerVirtualWorld(plo,worldd);
}
if(PlayerInfo[playerid][pInt] == 0)
{
SetPlayerInterior(plo,PlayerInfo[playerid][pInt]);
SetPlayerInterior(plo,inter);
SetPlayerVirtualWorld(plo,worldd);
}
if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0) //the highest land point in sa = 526.8
{
SetPlayerInterior(plo,inter);
PlayerInfo[plo][pInt] = inter;
}
if (GetPlayerState(plo) == 2)
{
TelePos[plo][0] = 0.0;
TelePos[plo][1] = 0.0;
SetPlayerInterior(plo,inter);
new tmpcar = GetPlayerVehicleID(plo);
SetPlayerVirtualWorld(plo,worldd);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
}
else
{
SetPlayerPos(plo,plocx,plocy+2, plocz);
SetPlayerInterior(plo,inter);
SetPlayerVirtualWorld(plo,worldd);
}
format(string, sizeof(string), "Администратор %s[%d] телепортировал Вас к себе", sendername,playerid);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Вы не уполномочены использовать эту команду!");
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Ошибка] Игрок не найден!");
}
return 1;
}
Чтобы видеть скрытое содержание Зарегистрируйтесь на форуме!
вот такую. Сам пробовал сделать но не выводило текст кого я тпешил. Помогите
