09.04.2012, 22:02
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.
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:
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;
}
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))