teleport script?!
#4

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:
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
}
You can get the x, y, z with /save ingame.
Reply


Messages In This Thread
teleport script?! - by Ecstacy - 12.09.2011, 19:58
Re: teleport script?! - by Kingunit - 12.09.2011, 20:06
Re: teleport script?! - by Ecstacy - 12.09.2011, 20:13
Re: teleport script?! - by Kingunit - 12.09.2011, 20:16
Re: teleport script?! - by Ecstacy - 12.09.2011, 20:17
Re: teleport script?! - by Kingunit - 12.09.2011, 20:20
Re: teleport script?! - by Ecstacy - 12.09.2011, 20:31
Re: teleport script?! - by Kingunit - 12.09.2011, 20:33
Re: teleport script?! - by Ecstacy - 12.09.2011, 20:45
Re: teleport script?! - by Kingunit - 12.09.2011, 21:02

Forum Jump:


Users browsing this thread: 2 Guest(s)