Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
You can put it at the end of your script.
Posts: 1,070
Threads: 12
Joined: Jun 2009
Reputation:
0
I gave you a filterscript... Just compile the code I gave you. Copy and paste.
Posts: 164
Threads: 30
Joined: May 2008
Reputation:
0
I know, but, limit of FS is 16, i need some filterscripts, i want put this script on gamemode
Posts: 164
Threads: 30
Joined: May 2008
Reputation:
0
Ok, i put in a FS and i test, and i think you make that wrong, i only writte /getip, and show mi ip lol, only show my ip :P
Posts: 2,593
Threads: 34
Joined: Dec 2007
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128],index;
cmd = strtok(cmdtext, index);
if(strcmp(cmd, "/getip", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new text[128];
text = strtok(cmdtext, index);
if(!strlen(text)) return SendClientMessage(playerid, 0xFFFFFFFF,"Usage: /getip [playerid]");
new player = strval(text);
if(IsPlayerConnected(player))
{
new string[128];
new name[MAX_PLAYER_NAME];
new IP[20];
GetPlayerName(player, name, sizeof(name));
GetPlayerIp(player, IP, sizeof(IP));
format(string, sizeof(string), "%s's IP: %s", name, IP);
SendClientMessage(playerid, 0xFFFFFFFF, string);
}else SendClientMessage(playerid, 0xFFFFFFFF,"Player is not connected");
}else SendClientMessage(playerid, 0xFFFFFFFF,"Only for admins !");
return 1;
}
return 0;
}