SA-MP Forums Archive
/bonus - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /bonus (/showthread.php?tid=582589)



/bonus - RedRo - 21.07.2015

hello.
i want a script for beginner player
when you enter in server(new player) when you type /bonus server give you +2level ups and 100000$ and command can be use one time


Re: /bonus - Crystallize - 21.07.2015

Код:
CMD:bonus(playerid, params[])
{
     if(pInfo[playerid][pCash] >= gettime())
     {
           GivePlayerCash(playerid, 100000);
            if(pInfo[playerid][pCash] = gettime()+86400;
     }
     else return SendClientMessage(playerid, -1, "You have already used this command today, try again tomorrow.");
}
You can use something like this so the players can use each day this is just an example as i've not provided return
and change the p variables to yours


Re: /bonus - RedRo - 21.07.2015

up please


Re: /bonus - Crystallize - 21.07.2015

Quote:
Originally Posted by RedRo
Посмотреть сообщение
up please
I just gave you an idea on how to start....


Re: /bonus - DarkLored - 21.07.2015

Create a variable that checks if the player is a beginner and call it when the player registers then use in the command and check if the variable == 1 if it does it will give the player a beginner bonus.


Re: /bonus - PepsiCola23 - 21.07.2015

PHP код:
if(PlayerInfo[playerid][pLevel] == 1)
{
    
level PlayerInfo[playerid][pLevel];
    
PlayerInfo[playerid][pLevel] = level 2;
    
GivePlayerMoney(playerid,1000000);
    return 
1;

or something like this,just customize for your cmd processor


Re: /bonus - RedRo - 22.07.2015

can you make me all?


Re: /bonus - Glossy42O - 22.07.2015

Of course not.


Re: /bonus - SickAttack - 22.07.2015

Quote:
Originally Posted by RedRo
Посмотреть сообщение
can you make me all?
Don't bother making a server, if you cannot provide proper support and updates.