This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new bool: status_using_command[MAX_PLAYERS char] = {false, ...}; // Глобально (Кj вcем new) | |
public OnPlayerCommandText(playerid, cmdtext[]) | |
{ | |
// Это вставить в начало callback OnPlayerCommandText | |
if(status_using_command{playerid} == true) | |
return SendClientMessage(playerid, -1, "Нельзя так часто использовать команды! Попробуйте позже!"); | |
const | |
TIME_USING_COMMAND = 90000; // Через 90 секунд можно будет использовать команду | |
SetTimerEx("OnPlayerUsingCommand", TIME_USING_COMMAND, false, "d", playerid); | |
status_using_command{playerid} = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case 11101: | |
{ | |
if(response) | |
{ | |
if(PlayerInfo[playerid][p_leaders] == 12) | |
{ | |
if(ismysqlnull(inputtext)) | |
return SPD(playerid, 11101, DIALOG_STYLE_INPUT, " ","С какой бандой вы хотите зачинить войну\n\n\ | |
Rifa\n\ | |
Grove\n\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new |
NewerOlder