14.02.2013, 11:10
@ Topic poster:
Change it to:
[if] You want to change it to a banex
if you are making it for kick:
Change Ban(playerid); to Kick(playerid);
pawn Код:
forward ban(playerid);
public ban(playerid)
{
Ban(playerid);
return 1;
}
KickWithMessage(playerid, message[])
{
SendClientMessage(playerid, 0xFF4444FF, message);
SetTimerEx("KickPublic", 1000, 0, "d", playerid);
}
[if] You want to change it to a banex
pawn Код:
forward KickPublic(playerid);
public KickPublic(playerid)
{
Kick(playerid);
KickWithMessage(playerid, message[])
{
SendClientMessage(playerid, 0xFF4444FF, message);
SetTimerEx("ban", 10, 0, "d", playerid);
}
Change Ban(playerid); to Kick(playerid);