09.12.2012, 01:03
I would like to scare some of my users ,
How would i script those in without it actually kicking them?
How would i script those in without it actually kicking them?
CMD:fkick(playerid, params[])
{
new name[MAX_PLAYER_NAME], tname[MAX_PLAYER_NAME], string[128], reason[64], target;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"You are not an administrator"); // Replace this with your variable which is responsible for saving the admin's level.
if(sscanf(params,"us[64]", target, reason)) return SendClientMessage(playerid, -1,"SYNTAX: /fkick [targetid] [reason]");
if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1,"There's no active player with this ID.");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(target, tname, sizeof(tname));
format(string, sizeof(string),"AdmWarn: %s has kicked %s from the server, reason: %s", name, tname, reason);
SendClientMessageToAll(-1, string);
return 1;
}