Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 1;
- }
- public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
- {
- if(AF[playerid][af_cmd] > 0){
- if(AF[playerid][af_cmd] < 2){
- SendClientMessage(playerid,CGRAY2, !"Пожалуйста, не флудите.");
- }
- else if(AF[playerid][af_cmd] < 4){
- SendClientMessage(playerid,CGRAY2, !"Если вы продолжите флудить вы будите кикнуты");
- }
- else Kick(playerid);
- AF[playerid][af_cmd]++;
- return 0;
- }
- AF[playerid][af_cmd]++;
- /*if(PI[playerid][pDialogID] != -1){
- SendClientMessage(playerid,CGRAY, !"Нельзя использовать команды, пока открыт диалог");
- return 0;
- }*/
- if ((flags & CMD_ADMIN) && Admin_Level{playerid} < 1)
- return 0;
- if(flags & CMD_INT) return 1;
- if(PlayerLogged{playerid} == 0){
- SendClientMessage(playerid,0xFFFFFFFF,!"Вы не авторизированы");
- return 0;
- }
- return 1;
- }
- public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
- {
- if(result == -1)
- {
- //SendClientMessage(playerid,CINFO,!"Такой команды на сервере нет. Используйте: /help, /mm");
- return 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement