10.05.2011, 11:05
Here's how i would done it 
first off with some defines :
I assume you have an pInfo enumerator, now let's make yet another one.
Now when you "rob" an person you could check the chances by skill level, do the percentage by skill level etc
good luck.

first off with some defines :
pawn Код:
#define SKILL_ROB 1
pawn Код:
enum pSkills
{
Rob,
}
new PlayerSkills[MAX_PLAYERS][pSkills];
pawn Код:
stock GetPlayerSkill(playerid, skillid)
{
if(skillid == SKILL_ROB) return PlayerSkills[playerid][Rob];
return 0;
}
pawn Код:
stock GivePlayerSkill(playerid, skillid, amount)
{
if(skillid == SKILL_ROB) PlayerSkills[playerid][Rob] += amount;
return 1;
}
pawn Код:
stock SetPlayerSkill(playerid, skillid, amount)
{
if(skillid == SKILL_ROB) PlayerSkills[playerid][Rob] = amount;
return 1;
}
good luck.


