forward KontrolEdiver(playerid); public KontrolEdiver(playerid) { new Float:x, Float:y, Float:z; GetPlayerCameraFrontVector(playerid, x, y, z); #pragma unused x #pragma unused y if(z < -0.8){ KillTimer(_ESC[playerid]); TogglePlayerControllable(playerid, 1); KontrolEdildi[playerid] = 2; ShowPlayerDialog(playerid, 3131, DIALOG_STYLE_MSGBOX, "Tarama", "{00ff00}Hileyi Silip Tekrar Giriş Yapınız", "Kapat", ""); // Does Not Appear Kick(playerid); }
https://sampwiki.blast.hk/wiki/Kick
Read the important note in the link above. You have to delay the kick with a timer so the player will be able to see the message/dialog etc. There's an example shown at the bottom of it. |