if(Player[playerid][Level] >= 1)
{
GivePlayerMoney(playerid, 50000);
return 1;
}
switch(playerinfo[playerid][level])
{
case 0: GivePlayerMoney(playerid, 5000); //level 0
case 1: GivePlayerMoney(playerid, 50000); // level 1
// etc
}
new money = 50000;
switch(playerinfo[playerid][level])
{
case 0: GivePlayerMoney(playerid, money*0); //level 0
case 1: GivePlayerMoney(playerid, money*1); // level 1
case 2: GivePlayerMoney(playerid, money*2); // level 2
case 3: GivePlayerMoney(playerid, money*3);
}
new money = 50000;
[php]switch(playerinfo[playerid][level]) { case 0: GivePlayerMoney(playerid, money*0); //level 0 case 1: GivePlayerMoney(playerid, money*1); // level 1 case 2: GivePlayerMoney(playerid, money*2); // level 2 case 3: GivePlayerMoney(playerid, money*3); } |
if(PlayerInfo[playerid][pPremium] == 1)
{
PlayerInfo[playerid][pRespectPoint] += 2; //This officially depends on your own variable which you're using it as a RespectPoint Variable so you have got to make some changes.
return 1;
}
GivePlayerMoney(playerid, 50000*level)
new level = playerinfo[player][level]; //<-- Use your level array
if(playeinfo[playerid][premium] != 0) playerinfo[playerid][rp] += 2; // Use your premium and respect points array here
GivePlayerMoney(playerid, 50000*level);