05.11.2013, 06:08
Ikbenremco is perfectly correct.
also, if u want to display a kick message before the kick, make a separate kick function, as samp , since 0.3x, has this issue, that if it reads KICK anywhere, it directly kicks the player. so if u do
sendclientmessage("blabla bla bla bla");
Kick(giveplayerid);
it wont display the message. it will directly kick the player.
but if u make some function (example KickFunc)
then if u type
sendclientmessage("blabla bla bla bla");
KickFunc(giveplayerid);
then it displays whatever has to be displayed, and kicks the player in the end. cheers
also, if u want to display a kick message before the kick, make a separate kick function, as samp , since 0.3x, has this issue, that if it reads KICK anywhere, it directly kicks the player. so if u do
sendclientmessage("blabla bla bla bla");
Kick(giveplayerid);
it wont display the message. it will directly kick the player.
but if u make some function (example KickFunc)
then if u type
sendclientmessage("blabla bla bla bla");
KickFunc(giveplayerid);
then it displays whatever has to be displayed, and kicks the player in the end. cheers