Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.88 KB | None | 0 0
  1. stock bootstrap_Kick(playerid, reason[] = !"", bool:lang_mode = true)
  2. {
  3.     if(!strlen(reason))
  4.     {
  5.         Dialog_Message(playerid,
  6.             !COLOR_TITLE"KICK_CAPTION",
  7.             COLOR_ERROR"KICK_INFO_NO_REASON",
  8.             !"KICK_BUTTON", COLOR_NOTE);
  9.     }
  10.  
  11.     else
  12.     {
  13.         if(lang_mode)
  14.         {
  15.             new buff[128];
  16.             Lang_GetPlayerText(playerid, reason, buff);
  17.  
  18.             Dialog_Message(playerid,
  19.             !COLOR_TITLE"KICK_CAPTION",
  20.             !COLOR_ERROR"KICK_INFO",
  21.             !"KICK_BUTTON",
  22.             COLOR_TITLE, buff, COLOR_NOTE);
  23.         }
  24.  
  25.         else
  26.         {
  27.             Dialog_Message(playerid,
  28.                 !COLOR_TITLE"KICK_CAPTION",
  29.                 COLOR_ERROR"KICK_INFO",
  30.                 !"KICK_BUTTON",
  31.                 COLOR_TITLE, reason, COLOR_NOTE);
  32.         }
  33.     }
  34.    
  35.     return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement