Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if(listitem == 7)//Выразить уважение
- {
- if( PlayerInfo[playerid][pRespect] < 20)
- {
- format(msgitem, sizeof(msgitem), " У вас %d очков уважения. Необходимо %d очков!",
- PlayerInfo[playerid][pRespect], 20);
- SendClientMessage(playerid, COLOR_GREY, msgitem);
- SendClientMessage(playerid, COLOR_GREY, " Чтобы поднять уважение вы можете поучаствовать в боях на ринге");
- return 1;
- }
- if( PlayerInfo[playerid][pRespectDay] == getdate())
- {
- SendClientMessage(playerid, COLOR_GREY, " Вы сегодня уже выразили своё уважение кому-то!");
- return 1;
- }
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " Вы не можете выражать уважение самому себе !");
- return 1;
- }
- PlayerInfo[giveplayerid][pRespect] += 1;
- if(PlayerInfo[playerid][pAdmin] < 7) PlayerInfo[playerid][pRespectDay] = getdate();
- format(msgitem, sizeof(msgitem), " Bы выразили %s'у своё уважение.", PlayerName(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, msgitem);
- format(msgitem, sizeof(msgitem), " Bы получили признательность от %s'а.", PlayerName(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, msgitem);
- SetPlayerShowBattery(giveplayerid, 1, PlayerInfo[giveplayerid][pRespect], 100);
- SendClientMessage(giveplayerid, COLOR_GREY, " При 15 очках уважения вы сможете менять репутацию другим игрокам.");
- }
- else if(listitem == 8)//Выразить презрение
- {
- if( PlayerInfo[playerid][pRespect] < 20)
- {
- format(msgitem, sizeof(msgitem), " У вас %d очков уважения. Необходимо %d очков!",
- PlayerInfo[playerid][pRespect], 20);
- SendClientMessage(playerid, COLOR_GREY, msgitem);
- SendClientMessage(playerid, COLOR_GREY, " Чтобы поднять уважение вы можете поучавствовать в боях на ринге");
- return 1;
- }
- if( PlayerInfo[playerid][pRespectDay] == getdate())
- {
- SendClientMessage(playerid, COLOR_GREY, " Вы сегодня уже изменяли кому-то репутацию!");
- return 1;
- }
- if(giveplayerid == playerid)
- {
- SendClientMessage(playerid, COLOR_GREY, " Вы не можете выражать презрение самому себе !");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pRespect] > 0) PlayerInfo[giveplayerid][pRespect] -= 1;
- if(PlayerInfo[playerid][pAdmin] < 7) PlayerInfo[playerid][pRespectDay] = getdate();
- format(msgitem, sizeof(msgitem), " Bы выразили %s'у своё презрение.", PlayerName(giveplayerid));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, msgitem);
- format(msgitem, sizeof(msgitem), " Bы получили презрение от %s'а.", PlayerName(playerid));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, msgitem);
- SetPlayerShowBattery(giveplayerid, 1, PlayerInfo[giveplayerid][pRespect], 100);
- SendClientMessage(giveplayerid, COLOR_GREY, " При менее 15 очках уважения вы не сможете менять репутацию другим игрокам.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement