Advertisement
Sem_Loreann

Untitled

Apr 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. CMD:limit(playerid, params[])
  2. {
  3. ShowPlayerDialog(playerid, D_LIMIT, DIALOG_STYLE_LIST, "Лимит скорости", "1. до 20 км ч\n2. до 40 км/ч\n3. до 80 км/ч\n4. до 120 км/ч\n- Отключить лимит", "Выбор", "Отмена");
  4. return true;
  5. }
  6.  
  7. case D_LIMIT:
  8. {
  9. case 0: PlayerInfo[playerid][pLimit] = 1;
  10. case 1: PlayerInfo[playerid][pLimit] = 2;
  11. case 2: PlayerInfo[playerid][pLimit] = 3;
  12. case 3: PlayerInfo[playerid][pLimit] = 4;
  13. case 4:
  14. {
  15. PlayerInfo[playerid][pLimit] = 0;
  16. SendClientMessage(playerid, -1, "Вы отключили лимит.");
  17. }
  18. if(PlayerInfo[playerid][pLimit] == 1) GetPlayerSpeed //Сюда значение для макс скорости
  19. if(PlayerInfo[playerid][pLimit] == 2) GetPlayerSpeed //Сюда значение для макс скорости
  20. if(PlayerInfo[playerid][pLimit] == 3) GetPlayerSpeed //Сюда значение для макс скорости
  21. if(PlayerInfo[playerid][pLimit] == 4) GetPlayerSpeed //Сюда значение для макс скорости
  22. SendClientMessage(playerid, -1, "Лимит установлен.");
  23. return true;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement