Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

/weap

Статус
В этой теме нельзя размещать новые ответы.

kemperrr

Умник
Ко всем new
PHP:
new GunAC[MAX_PLAYERS][14];
Ко всем командам

PHP:
if(strcmp(cmd, "/weap", true) == 0)
	{
		new g;
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, COLOR_GRAD2, "Используй /weap [id игрока]");
		g = ReturnUser(tmp);
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			if(IsPlayerConnected(g))
			{
				if(g != INVALID_PLAYER_ID)
				{
					new weapons[14],ammos[14];
					new bigstring[1024];
					GetPlayerWeaponData(g, 1, weapons[1], ammos[1]);
					GetPlayerWeaponData(g, 2, weapons[2], ammos[2]);
					GetPlayerWeaponData(g, 3, weapons[3], ammos[3]);
					GetPlayerWeaponData(g, 4, weapons[4], ammos[4]);
					GetPlayerWeaponData(g, 5, weapons[5], ammos[5]);
					GetPlayerWeaponData(g, 6, weapons[6], ammos[6]);
					GetPlayerWeaponData(g, 7, weapons[7], ammos[7]);
					GetPlayerWeaponData(g, 8, weapons[8], ammos[8]);
					GetPlayerWeaponData(g, 9, weapons[9], ammos[9]);
					GetPlayerWeaponData(g, 10, weapons[10], ammos[10]);
					GetPlayerWeaponData(g, 11, weapons[11], ammos[11]);
					GetPlayerWeaponData(g, 12, weapons[12], ammos[12]);
					GetPlayerWeaponData(g, 13, weapons[13], ammos[13]);
					new temp[64];
					format(bigstring,sizeof(bigstring),"{FFFFFF}Слот 1: \tWeapon: %d\tAmmo: %d\n",weapons[1],ammos[1]);
					format(temp, sizeof(temp), "Слот 2: \tWeapon: %d\tAmmo: %d\n",weapons[2],ammos[2]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 3: \tWeapon: %d\tAmmo: %d\n",weapons[3],ammos[3]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 4: \tWeapon: %d\tAmmo: %d\n",weapons[4],ammos[4]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 5: \tWeapon: %d\tAmmo: %d\n",weapons[5],ammos[5]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 6: \tWeapon: %d\tAmmo: %d\n",weapons[6],ammos[6]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 7: \tWeapon: %d\tAmmo: %d\n",weapons[7],ammos[7]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 8: \tWeapon: %d\tAmmo: %d\n",weapons[8],ammos[8]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 9: \tWeapon: %d\tAmmo: %d\n",weapons[9],ammos[9]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 10:\tWeapon: %d\tAmmo: %d\n",weapons[10],ammos[10]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 11:\tWeapon: %d\tAmmo: %d\n",weapons[11],ammos[11]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 12:\tWeapon: %d\tAmmo: %d\n",weapons[12],ammos[12]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 13:\tWeapon: %d\tAmmo: %d\n",weapons[13],ammos[13]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "\n\n{00CC00}Слот 2: \t%d\n",GunAC[g][2]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 3: \t%d\n",GunAC[g][3]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 4: \t%d\n",GunAC[g][4]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 5: \t%d\n",GunAC[g][5]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 6: \t%d\n",GunAC[g][6]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 7: \t%d\n",GunAC[g][7]);
					strcat(bigstring, temp, sizeof(bigstring));
					format(temp, sizeof(temp), "Слот 8: \t%d",GunAC[g][8]);
					strcat(bigstring, temp, sizeof(bigstring));
					ShowPlayerDialog(playerid, 1277, 0, PlayerInfo[g][pName], bigstring, "Закрыть", "");
					return true;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "[{FF0000}Error{B4B5B7}] Неверный id.");
			}
		}
		return true;
	}
P.S Диалога 1277 так и не нашел

Автор: Thomas_Makaveli Вроде он, вырезал из Scorpion RolePlay
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу