SHARE
TWEET

Untitled

a guest Jun 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:testgun(playerid)
  2. {
  3.     new n, str[250];
  4.     static body[250];
  5.     for(new i=0; i<=13; i++)
  6.     {
  7.         if(PIwp[playerid][i] >= 22 && PIwp[playerid][i] <= 34)
  8.         {
  9.             nWP[playerid][n] = PIwp[playerid][i];
  10.             format(str, sizeof(str), "\n%s", wName[PIwp[playerid][i]]);
  11.             strcat(body, str);
  12.             n++;
  13.         }
  14.     }
  15.     if(n != 0)
  16.     {
  17.         ShowPlayerDialog(playerid, 320, DIALOG_STYLE_LIST, "{FFC300}Список оружия", body, "Выбрать", "Назад");
  18.     } else {
  19.         ShowPlayerDialog(playerid, 241, DIALOG_STYLE_MSGBOX, "{FFC300}Ошибка", "{FFFFFF}У тебя нет оружия на руках", "Закрыть", "");
  20.     }
  21.     return true;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top