21.03.2018, 19:07
PHP код:
CMD:gotopl(playerid, params[])
{
new targetid;
if(sscanf(params,"u", targetid))return SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /gotopl [id/name]");
new Float:x, Float:y, Float:z;
GetPlayerPos(targetid, x, y, z);
SetPlayerPos(playerid, x, y+1.0, z);
SetPlayerInterior(playerid, GetPlayerInterior(targetid));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(targetid));
return 1;
}
CMD:gethere(playerid, params[])
{
new targetid;
if(sscanf(params,"u", targetid))return SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /gethere [id/name]");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(targetid, x, y+1.0, z);
SetPlayerInterior(targetid, GetPlayerInterior(playerid));
SetPlayerVirtualWorld(targetid, GetPlayerVirtualWorld(playerid));
return 1;
}