Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/sk", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Kikovani ste zbog cita!");
- SetTimerEx("DelayedKick", 1000, false, "i", playerid);
- return 1;
- }
- if (strcmp("/cm.Klasnaya", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Kikovani ste zbog cita!");
- SetTimerEx("DelayedKick", 1000, false, "i", playerid);
- return 1;
- }
- if (strcmp("/detonate", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Kikovani ste zbog cita!");
- SetTimerEx("DelayedKick", 1000, false, "i", playerid);
- return 1;
- }
- if (strcmp("/st", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Kikovani ste zbog cita!");
- SetTimerEx("DelayedKick", 1000, false, "i", playerid);
- return 1;
- }
- if (strcmp("/hcleo", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Kikovani ste zbog cita!");
- SetTimerEx("DelayedKick", 1000, false, "i", playerid);
- return 1;
- }
- if (strcmp("/ro", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Kikovani ste zbog cita!");
- SetTimerEx("DelayedKick", 1000, false, "i", playerid);
- return 1;
- }
- if (strcmp("/kc", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0xFF0000FF, "Kikovani ste zbog cita!");
- SetTimerEx("DelayedKick", 1000, false, "i", playerid);
- return 1;
- }
- return 0;
- }
- forward DelayedKick(playerid);
- public DelayedKick(playerid)
- {
- Kick(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement