12.09.2011, 20:16
What you mean? Only Administrator can do it? You need to have a register/login system that's saving the adminlevel. Otherwise use the RCON admin check. Like this:
You can get the x, y, z with /save ingame.
pawn Код:
CMD:gotolv(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");
SendClientMessage(playerid, COLOR_WHITE, "[ADMIN] You teleported to Las Venturas!");
SetPlayerPos(playerid, x, y, z ); // Replace x, y, z to your own
return 1
}
CMD:gotols(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"You can't use this command.");
SendClientMessage(playerid, COLOR_WHITE, "[ADMIN] You teleported to Los Santos!");
SetPlayerPos(playerid, x, y, z ); // Replace x, y, z to your own
return 1
}