Leaders
Компетентный
PHP:
else if(strcmp(cmd, "/broni", true) == 0)
{
if (PlayerInfo[playerid][pLevel] >= 2)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "::: Помощь: /broni [id]");
if (PlayerInfo[playerid][pAdmin] >= 3)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
SetPlayerAttachedObject(giveplayerid, 3,19142, 1, 0.0, 0.056, 0.0, 0, 0, 0,1.3,1.3,1.1);
}
SendClientMessage(playerid, COLOR_LIGHTRED, "Дал Броню");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Ошибка");
}
}
return 1;
}
Последнее редактирование:
