shape1
shape2
shape3
shape4
shape7
shape8

При тп /goto текстуры изчезают!


Статус
Закрыто для дальнейших ответов.

NikitaFot

Новичок
Пользователь
10.03.2015
145
7
0
Мод Beats Role Play основа Classic RP!
сама кмд
//==============================================================================

if(strcmp(cmd, "/goto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Подсказка: /goto [playerid/PartOfName]");
return 1;
}
new Float:plocx,Float:plocy,Float:plocz;
new plo;
plo = strval(tmp);
if (IsPlayerConnected(plo))
{
if(plo != INVALID_PLAYER_ID)
{
if (PlayerInfo[playerid][pAdmin] >= 2 || PlayerInfo[playerid][pHelper] >= 2)
{
if(Spectate[playerid] != 255)
{
Spectate[playerid] = 256;
}
GetPlayerPos(plo, plocx, plocy, plocz);
if(PlayerInfo[plo][pInt] > 0)
{
SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
}
if(PlayerInfo[playerid][pInt] == 0)
{
SetPlayerInterior(playerid,0);
}
if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8
{
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
}
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
if(toggotome[plo] == 1)
{
SendClientMessage(playerid,COLOR_GREY,"К админу нельзя телепортироваться!");
return 1;
}
else
{
SetPlayerPos(playerid,plocx,plocy+2, plocz);
}
SendClientMessage(playerid, COLOR_GRAD1, "Вы были телепортированны");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "У вас нет прав не использование этой команды!");
}
}
}
else
{
format(string, sizeof(string), "%d Этот игрок вышел из сети!.", plo);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
//==============================================================================

Как исправить подскажите!
если не трудно киньте сразу готовое решение!
 
Последнее редактирование модератором:

Sten

Unknown
Пользователь
08.05.2014
830
77
0
Вот так попробуй

Код:
if(strcmp(cmd, "/goto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1||PlayerInfo[playerid][pHelper] >= 3)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /goto [ID игрока/Часть ника]");
ShowPlayerDialog(playerid,387,DIALOG_STYLE_LIST,"Телепортироватся:","Южный\nБатырево\nАрзамас\nSpawn в Южном\nАвтосалон","Ок","Отмена");
return 1;
}
new Float:plocx,Float:plocy,Float:plocz;
new plo;
plo = ReturnUser(tmp);
if (IsPlayerConnected(plo))
{
if(plo != INVALID_PLAYER_ID)
{
if(toggotome[plo] == 1)
{
SendClientMessage(playerid,COLOR_GREY,"Админ запретил к нему телепортироваться");
return 1;
}
GetPlayerPos(plo,plocx,plocy,plocz);
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid,plocx,plocy+2, plocz);
}
SetPlayerInterior(playerid,GetPlayerInterior(plo));
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(plo));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Вы были телепортированы!");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Вы не уполномочены использовать эту команду!");
}
}
else
{
format(string, sizeof(string), " %d не активный игрок.", plo);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
}
return 1;
}
 
Статус
Закрыто для дальнейших ответов.