Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:limit(playerid, params[])
- {
- ShowPlayerDialog(playerid, D_LIMIT, DIALOG_STYLE_LIST, "Лимит скорости", "1. до 20 км ч\n2. до 40 км/ч\n3. до 80 км/ч\n4. до 120 км/ч\n- Отключить лимит", "Выбор", "Отмена");
- return true;
- }
- case D_LIMIT:
- {
- case 0: PlayerInfo[playerid][pLimit] = 1;
- case 1: PlayerInfo[playerid][pLimit] = 2;
- case 2: PlayerInfo[playerid][pLimit] = 3;
- case 3: PlayerInfo[playerid][pLimit] = 4;
- case 4:
- {
- PlayerInfo[playerid][pLimit] = 0;
- SendClientMessage(playerid, -1, "Вы отключили лимит.");
- }
- if(PlayerInfo[playerid][pLimit] == 1) GetPlayerSpeed //Сюда значение для макс скорости
- if(PlayerInfo[playerid][pLimit] == 2) GetPlayerSpeed //Сюда значение для макс скорости
- if(PlayerInfo[playerid][pLimit] == 3) GetPlayerSpeed //Сюда значение для макс скорости
- if(PlayerInfo[playerid][pLimit] == 4) GetPlayerSpeed //Сюда значение для макс скорости
- SendClientMessage(playerid, -1, "Лимит установлен.");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement