Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock bootstrap_Kick(playerid, reason[] = !"", bool:lang_mode = true)
- {
- if(!strlen(reason))
- {
- Dialog_Message(playerid,
- !COLOR_TITLE"KICK_CAPTION",
- COLOR_ERROR"KICK_INFO_NO_REASON",
- !"KICK_BUTTON", COLOR_NOTE);
- }
- else
- {
- if(lang_mode)
- {
- new buff[128];
- Lang_GetPlayerText(playerid, reason, buff);
- Dialog_Message(playerid,
- !COLOR_TITLE"KICK_CAPTION",
- !COLOR_ERROR"KICK_INFO",
- !"KICK_BUTTON",
- COLOR_TITLE, buff, COLOR_NOTE);
- }
- else
- {
- Dialog_Message(playerid,
- !COLOR_TITLE"KICK_CAPTION",
- COLOR_ERROR"KICK_INFO",
- !"KICK_BUTTON",
- COLOR_TITLE, reason, COLOR_NOTE);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement