Respects points for each level
#1

Hi guys ^^
How can i modify the level from the beggining, i mean when you register, to have level 1.

And for each level, respects points you need.
For example. For level one, you need 8 RP to /buylevel...


Sorry for my english.
Reply
#2

show your levels and points variables
Reply
#3

Where i take them ?
Reply
#4

Quote:
Originally Posted by VilleValo
Посмотреть сообщение
Where i take them ?
You must create a variable first.

Example:

pawn Код:
new YourVariable[MAX_PLAYERS]; //put it at the top of the script (Below the includes)
you've to make

pawn Код:
YourVariable[playerid] = 1; //set's YourVariable to 1.
when player register

then on a command (Example only) do something like this

pawn Код:
CMD:buyit(playerid, params[])
{
    if(YourVariable[playerid] <= 8) return SendClientMessage(playerid, -1, "Error: Not enough points to use the command"); //checks if YourVariable is less than 8, If it is return SendClientMessage is called.
    return 1;
}
Reply
#5

Make a user system, it's gonna be better.

https://sampforum.blast.hk/showthread.php?tid=273088

And then do what Romel said, but instead of making a new variable just add one in your enum which should be called "pInfo".
Reply
#6

But, is a on mysql... i don't want to waste time.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)