Robbing skill
#3

Quote:
Originally Posted by Kyance
Посмотреть сообщение
Create an variable or enum which stores the robbery amount, and each time it goes to 5, 10, 15 etc.. ( I don't know of a better way D: ), give him the Robbing level/skill.

ex:
pawn Код:
//Robbery script here
/*Something*/[playerid][pRobbed]++;

if(/*Something*/[playerid][pRobbed] == 5 || /*Something*/[playerid][pRobbed] == 10 || /*Something*/[playerid][pRobbed] == 15 || /*Something*/[playerid][pRobbed] == 20 /*......*/)
{
    /*Something*/[playerid][pRobSkill]++;
    format(string, sizeof(string), "* Your Robbing Skill has increased to %i for robbing %i stores!", /*Something*/[playerid][pRobbed], /*Something*/[playerid][pRobSkill]);
    SendClientMessage(playerid, -1, string);
}
Something like that i suppose ..
I got it thanks lad!!
Reply


Messages In This Thread
Robbing skill - by vassilis - 28.03.2014, 13:41
Re: Robbing skill - by Kyance - 28.03.2014, 14:18
Re: Robbing skill - by vassilis - 28.03.2014, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)