28.01.2014, 11:18
PHP код:
else if(!strcmp(params, "sex", true))
{
new playerb=SexBy[playerb],price;
if(playerb == -1) return SendClientMessage(playerid, COLOR_GREY, "Nobody has offered you sex.");
format(string, sizeof(string), " You had sex with %s for $%d.", RPN(playerb), price);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " %s had sex with you for $%d.", RPN(playerid), price);
SendClientMessage(playerb, COLOR_LIGHTBLUE, string);
PlayerInfo[playerb][pJobSkill][JOB_WHORE] ++;
GiveDodMoney(playerid,-sexprice);
GiveDodMoney(playerb,sexprice);
Sex[playerb] = 1;
PlayerInfo[playerid][pJobSkill][JOB_WHORE] ++;
if(PlayerInfo[playerid][pJobSkill][JOB_WHORE] < 50) WhoreTime[playerid] = 150;
else if(PlayerInfo[playerid][pJobSkill][JOB_WHORE] < 100) WhoreTime[playerid] = 120;
else if(PlayerInfo[playerid][pJobSkill][JOB_WHORE] < 150) WhoreTime[playerid] = 90;
else if(PlayerInfo[playerid][pJobSkill][JOB_WHORE] < 200) WhoreTime[playerid] = 60;
else if(PlayerInfo[playerid][pJobSkill][JOB_WHORE] >= 250) WhoreTime[playerid] = 30;
SetTimerEx("WhoreTimer", 1000, false, "i", playerid);
new newj, oldj;
newj = strval(RPJL(playerid,JOB_WHORE));
oldj = strval(RPJL(playerid,JOB_WHORE));
if(oldj < newj)
{
format(string, sizeof(string), "** Your Whore level is now %d, you can now have Sex faster. **", newj);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
Unknown CMD