player teleport to admin
#1

// player tele to admin//////////////////////////////////////
dcmd_ptele(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You do not have permission to use this command");

static ID, Float:locx, Float:locy, Float:locz, inter;
if (sscanf(params, "u", ID)) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You must use /ptele [id]");
else
{
GetPlayerPos(playerid, locx, locy, locz);
inter = GetPlayerInterior(playerid);
SetPlayerInterior(ID, inter);
SetPlayerPos(ID, locx, locy+1, locz+1);
return 1;
}
}
//////////////////////////////////////////////////////////////////////////////

why wont it work, theres no errors
Reply


Messages In This Thread
player teleport to admin - by squomp - 05.04.2012, 03:43
Re: player teleport to admin - by Psymetrix - 05.04.2012, 03:47
Re: player teleport to admin - by Cjgogo - 05.04.2012, 03:47
Re: player teleport to admin - by DarkScripter - 05.04.2012, 03:50
Re: player teleport to admin - by squomp - 05.04.2012, 04:11
Re: player teleport to admin - by Cjgogo - 05.04.2012, 04:16
Re: player teleport to admin - by squomp - 05.04.2012, 05:10

Forum Jump:


Users browsing this thread: 1 Guest(s)