16.05.2013, 11:52
pawn Код:
CMD:gotopos(playerid, params[])
{
new Float:Pos[3], int;
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty.");
if(sscanf(params, "fffi", Pos[0], Pos[1], Pos[2], int)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /gotopos [x] [y] [z] [int]");
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerInterior(playerid, int);
return 1;
}