goto and gethere
#1

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(playeridparams[]){
new 
giveplayerid,gotow,gotoi;
if(
sscanf(params,"u"giveplayerid))return send(playeridCOLOR_GRAD1"USAGE: /gotopl [id/name]");
gotow GetPlayerInterior(giveplayerid);
gotoi GetPlayerVirtualWorld(giveplayerid);
GetPlayerPos(giveplayeridposxposyposz);
setint(playerid,gotoi);
setworld(playerid,gotow);
setpos(playeridposx,posy+1,posz);
return 
1;}
CMD:gethere(playeridparams[]){
new 
giveplayerid,gotow1,gotoi1;
if(
sscanf(params,"u"giveplayerid))return send(playeridCOLOR_GRAD1"USAGE: /gethere [id/name]");
gotow1 GetPlayerInterior(playerid);
gotoi1 GetPlayerVirtualWorld(playerid);
GetPlayerPos(playeridposxposyposz);
setint(giveplayerid,gotoi1);
setworld(giveplayerid,gotow1);
setpos(giveplayeridposx,posy+1,posz);
return 
1;} 
Reply


Messages In This Thread
goto and gethere - by EvgeniyHostel1992 - 21.03.2018, 16:27
Re: goto and gethere - by kovac - 21.03.2018, 16:56
Re: goto and gethere - by EvgeniyHostel1992 - 21.03.2018, 18:58
Re: goto and gethere - by kovac - 21.03.2018, 19:07
Re: goto and gethere - by Maxandmov - 22.03.2018, 06:27

Forum Jump:


Users browsing this thread: 1 Guest(s)