Error when changing to KickWithMessage
#5

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
Something like this?
pawn Код:
CMD:kick(playerid, params[])
{
 new reason[40], target;
 if(sscanf(params, "us[40]", target, reason)) return SCM(playerid, -1, "USAGE: /kick player reason.");
 if(!IsPlayerConnected(target)) return SCM(playerid, -1, "Player not connected.");
 else
 {
 new str[128];
 format(str, 128, "You have been kicked for the reason: %s", reason);
 SendClientMessage(target, -1, str);
 SetTimerEx("kickdelay", 1000, 0, "d", target);
 return 1;
 }
}
forward public kickdelay(target);
public kickdelay(target)
{
 Kick(target);
return 1;
}
Is that 0.3x friendly?
Reply


Messages In This Thread
Error when changing to KickWithMessage - by SiggaSvana - 23.02.2013, 07:15
Re: Error when changing to KickWithMessage - by SilverKiller - 23.02.2013, 07:20
Re: Error when changing to KickWithMessage - by SiggaSvana - 23.02.2013, 07:43
Re: Error when changing to KickWithMessage - by RajatPawar - 23.02.2013, 08:28
Re: Error when changing to KickWithMessage - by SiggaSvana - 23.02.2013, 08:50
Re: Error when changing to KickWithMessage - by JaKe Elite - 23.02.2013, 09:06

Forum Jump:


Users browsing this thread: 1 Guest(s)