05.04.2012, 03:43
// 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
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