Posts: 17
Threads: 6
Joined: Jul 2015
Reputation:
0
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
Posts: 1,498
Threads: 110
Joined: Aug 2013
Код:
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
Posts: 1,498
Threads: 110
Joined: Aug 2013
Quote:
Originally Posted by RedRo
up please
|
I just gave you an idea on how to start....
Posts: 1,045
Threads: 150
Joined: Oct 2013
Reputation:
0
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.