09.12.2016, 06:55
PHP код:
CMD:tpto(playerid,params[]){
//check is player admin
new Float:x,Float:y,Float:z,Float:angle,int,vw;
if(sscanf(params,"ffffI(-1)I(-1)",x,y,z,angle,int,vw)) return SendClientMessage(playerid,-1,"Usage /tpto <X> <Y> <Z> <A> [interior] [virtualworld]");
SetPlayerPos(playerid,x,y,z);
SetPlayerFacingAngle(playerid,angle);
if(int != -1) SetPlayerInterior(playerid,int);
if(vw != -1) SetPlayerVirtualWorld(playerid,vw);
SetCameraBehindPlayer(playerid);
return 1;
}