/bonus
#1

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
Reply
#2

Код:
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
Reply
#3

up please
Reply
#4

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

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.
Reply
#6

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
Reply
#7

can you make me all?
Reply
#8

Of course not.
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)