17.08.2011, 23:04
Not sure if you need something like this but here's a very easy way:
Just replace "playerLevel" with your variable.
pawn Код:
static const
g_aLevelInfo[][] =
{
{ "Level 1: Nothing, Level 2: $10000, /robbank and katana, Level 3: $25000 and 9mm pistol, Level 4: $50000 and deagle, Level 5: $100000 and micro smg" },
{ "Level 2: X" },
{ "Level 3: X" },
{ "Level 4: X" },
{ "Level 5: X" },
{ "Level 6: $175000 and Ak-47, Level 7: $250000 and sawn-off-shotgun" }
// ...
}
;
pawn Код:
CMD:levelinfo(playerid, params[])
return SendClientMessage(playerid, orange, g_aLevelInfo[playerLevel - 1]);