02.11.2014, 09:31
pawn Код:
CMD:get(playerid,params[])
{
if(PlayerInfo[playerid][Admin] >= 1)
{
new ID;
new Float:X;
new Float:Y;
new Float:Z;
new Float:A;
if(sscanf(params,"i", ID)) return SendClientMessage(playerid,-1,"{FF0000}AdmUsage: {15FF00}/Get [ID]");
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid, A);
SetPlayerPos(ID, X,Y,Z);
SendClientMessage(playerid, -1, "{FF0000}AdmCmd: {15FF00}You teleported to your position specified player !");
SendClientMessage(ID,-1, "{FF0000}AdmCmd: {15FF00}You have been teleported to an Administrator position !");
}
else
{
SendClientMessage(playerid, -1, "{FF0000}ERROR: {15FF00}You are not authorized to use this command !");
}
return 1;
}