18.01.2012, 12:02
make something like PlayerInfo
and when make the cmd to buy post your condition, I show you small example
and when make the cmd to buy post your condition, I show you small example
pawn Код:
enum pooInfo
{
pLevel,
};
new PlayerInfo[MAX_PLAYERS][pooInfo];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/buy", true) == 0)
{
if(PlayerInfo[playerid][pLevel] =>5)
{
balabla
}
return 1;
}
return 0;
}