Kick too fast ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Kick too fast ? (
/showthread.php?tid=87518)
Kick too fast ? -
UsaBoy91 - 20.07.2009
pawn Код:
if(PLINFO[playerid][pBlocked] == 1)
{
SendClientMessage(playerid,0xDE4E38FF,"This account has blocked.");
Kick(playerid);
}
if my var is sets to 1 and i enter to the server , i don't recive that message, i recive just the kick. Why ?
Re: Kick too fast ? -
James_Alex - 20.07.2009
try to add "return 1;"
Re: Kick too fast ? -
UsaBoy91 - 20.07.2009
Quote:
Originally Posted by James_Alex(Coder)
try to add "return 1;"
|
Oh , same thing
why ?
Re: Kick too fast ? -
Nubotron - 20.07.2009
Try these
pawn Код:
#define KickEx(%1,%2); \
{\
SendClientMessage(%1,0xDE4E38FF,#%2);\
SetTimerEx("kick",500,0,"i",%1);\
}
forward kick(playerid);
public kick(playerid)
Kick(playerid);
Exampel:
pawn Код:
KickEx(playerid, "This account has blocked.");
Re: Kick too fast ? -
UsaBoy91 - 20.07.2009
Quote:
Originally Posted by zozo
Try these
pawn Код:
#define KickEx(%1,%2); \ {\ SendClientMessage(%1,0xDE4E38FF,#%2);\ SetTimerEx("kick",500,0,"i",%1);\ }
forward kick(playerid);
public kick(playerid) Kick(playerid);
Exampel:
pawn Код:
KickEx(playerid, "This account has blocked.");
|
wtf ? what are those :
/
/
/
/
??
Re: Kick too fast ? -
Correlli - 20.07.2009
Quote:
Originally Posted by MJφ
wtf ? what are those :
/
/
/
/
??
|
It's \ and not /. It's used in define, means the define should continue in new line.