21.03.2018, 16:27
When the player's teleport and the teleport to the player, the interior does not load. the character falls into the texture. If the interior (street) - everything is okay
PHP код:
CMD:gotopl(playerid, params[]){
new giveplayerid,gotow,gotoi;
if(sscanf(params,"u", giveplayerid))return send(playerid, COLOR_GRAD1, "USAGE: /gotopl [id/name]");
gotow = GetPlayerInterior(giveplayerid);
gotoi = GetPlayerVirtualWorld(giveplayerid);
GetPlayerPos(giveplayerid, posx, posy, posz);
setint(playerid,gotoi);
setworld(playerid,gotow);
setpos(playerid, posx,posy+1,posz);
return 1;}
CMD:gethere(playerid, params[]){
new giveplayerid,gotow1,gotoi1;
if(sscanf(params,"u", giveplayerid))return send(playerid, COLOR_GRAD1, "USAGE: /gethere [id/name]");
gotow1 = GetPlayerInterior(playerid);
gotoi1 = GetPlayerVirtualWorld(playerid);
GetPlayerPos(playerid, posx, posy, posz);
setint(giveplayerid,gotoi1);
setworld(giveplayerid,gotow1);
setpos(giveplayerid, posx,posy+1,posz);
return 1;}