#1

payday depending on the level!

Example at level 1 you get $ 50,000 on payday, then if you have level 2 + $ 50,000 in total ($ 100,000) and so.
And if you have a premium account, get 2 respect points.
Thanks!
Reply
#2

PHP код:
if(Player[playerid][Level] >= 1)
{
    
GivePlayerMoney(playerid50000);
    return 
1;

This should help you understand a bit
Reply
#3

Or
PHP код:
switch(playerinfo[playerid][level])
{
    case 
0GivePlayerMoney(playerid5000);   //level 0
    
case 1GivePlayerMoney(playerid50000); // level 1
    // etc

Reply
#4

PHP код:
new money 50000;
switch(
playerinfo[playerid][level]) 

    case 
0GivePlayerMoney(playeridmoney*0);   //level 0 
    
case 1GivePlayerMoney(playeridmoney*1); // level 1 
    
case 2GivePlayerMoney(playerid,  money*2); // level 2
    
case 3GivePlayerMoney(playerid,  money*3);

Reply
#5

And, if you a have premium account, get 2 rp?
Reply
#6

Quote:
Originally Posted by Lucases
Посмотреть сообщение
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);
}
pls use [code] or [php]
because it would be better
Reply
#7

For Premium thing;
Example:
PHP код:
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;

Reply
#8

Quote:
Originally Posted by xXGabyGabiXx
Посмотреть сообщение
And, if you a have cont premium, get 2 rp?
That'd be simple, if RP were in the mod itself.

And don't use how Lucases posted up, it's bad, and wasteful.
Reply
#9

Quote:
Originally Posted by xXGabyGabiXx
Посмотреть сообщение
And, if you a have cont premium, get 2 rp?
Made my day

RO: Ba se zice accounts in engleza ))), nu cont.

At the money thing use: (la faza cu bani foloseste (nu e multa matematica) )
PHP код:
GivePlayerMoney(playerid50000*level
Insted of level use your variable (or array?) for storing the level. (In loc de level pui variabila care stocheaza banii)
Reply
#10

PHP код:

new level playerinfo[player][level]; //<-- Use your level array
if(playeinfo[playerid][premium] != 0playerinfo[playerid][rp] += 2// Use your premium and respect points array here 
GivePlayerMoney(playerid50000*level); 
So if player's level is 0 he won't receive nothing.
If his level is 1 he'll receive 50k
If he is level 2 he'll receive 100k etc..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)