Hide Admin Location? +REP
#1

So here is my /location code. What it does is when I type /location (id) it will show the location of the player in the chatbox to me.
pawn Код:
CMD:information(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "Usage: /location [id]");
 
    new
        pID = strval(params),
        zName[64] = "Unknown Location",
        iStr[128];

    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "Invalid ID!");

    GetPlayerInZone(pID, zName, 64);

    format(iStr, sizeof(iStr), "Location of %s(%d): %s", pName(pID), pID, zName);
    SendClientMessage(playerid, G, iStr);
    return 1;
}
How can i make it so when an admin types in /hidelocation , it will show the location San Andreas instead of each specific city?

Now i don't want RCON admin. I have Lux Admin script. So here is the replacement for IsPlayerAdmin for Lux Admin:

Код:
if(IsPlayerLuxAdminLevel(playerid,4))
Reply


Messages In This Thread
Hide Admin Location? +REP - by TheMightyEddy - 09.04.2012, 22:02
Re: Hide Admin Location? +REP - by ViniBorn - 09.04.2012, 22:10
Re: Hide Admin Location? +REP - by Toreno - 09.04.2012, 22:10
Re: Hide Admin Location? +REP - by TheMightyEddy - 09.04.2012, 22:15
Re: Hide Admin Location? +REP - by TheMightyEddy - 09.04.2012, 22:18
Re: Hide Admin Location? +REP - by ViniBorn - 09.04.2012, 22:20
Re: Hide Admin Location? +REP - by Jack.7331 - 09.04.2012, 22:21
Re: Hide Admin Location? +REP - by Toreno - 09.04.2012, 22:22
Re: Hide Admin Location? +REP - by TheMightyEddy - 09.04.2012, 22:22
Re: Hide Admin Location? +REP - by TheMightyEddy - 09.04.2012, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)