05.04.2012, 01:54
// admin tele to player//////////////////////////////////////
dcmd_tele(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
static ID, Float:locx, Float:locy, Float:locz;
if (sscanf(params, "i", ID))
{
GetPlayerPos(ID, locx, locy, locz);
SetPlayerPos(playerid, locx, locy, locz);
return 1;
}
return 1;
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You do not have permission to use this command");
return 1;
}
}
whats wrong with it I dont get any errors
dcmd_tele(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
static ID, Float:locx, Float:locy, Float:locz;
if (sscanf(params, "i", ID))
{
GetPlayerPos(ID, locx, locy, locz);
SetPlayerPos(playerid, locx, locy, locz);
return 1;
}
return 1;
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You do not have permission to use this command");
return 1;
}
}
whats wrong with it I dont get any errors