exp sistem
#1

how to make a experience system with timer and textdraw ? any tutorial
Reply
#2

Look this fs : https://sampforum.blast.hk/showthread.php?pid=1469659#pid1469659
Reply
#3

that is for deathmatch servers i need for RP roleplay server pleasee help
Reply
#4

How do you want to increase the players' experience?
However there are many filterscript on forum
Reply
#5

I want every minute to have 1 exp and under money has textdraw
Reply
#6

where you make a new post with problems that I have for my server? Thanks if you help me I can not find ... I post my problem here?
Reply
#7

No post here
http://forum.sa-mp.com/forumdisplay.php?f=12
Reply
#8

Try this code, I did it fast ..

Code:
new Exp[MAX_PLAYERS]; //experience
new Lv[MAX_PLAYERS]; //level
forward LevelUp(playerid);
Ongamemodeinit :

Code:
SetTimer("LevelUp", 1000, false);
out of any callback :

Code:
public LevelUp(playerid)
{
if(LevelNext(playerid) >= Exp[playerid]) {
Exp[playerid] = 0;
Lv[playerid] ++;
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);      
}
}
Code:
stock LevelNext(playerid){
return (Lv[playerid] * 5);
}
Only to increase the experience: Exp[playerid] ++;

Do not promise anything eh

Otherwise, use one of these:

https://sampforum.blast.hk/showthread.php?tid=353225
https://sampforum.blast.hk/showthread.php?tid=274680
Reply
#9

I make this post Post New Thread?
Reply
#10

Quote:
Originally Posted by gabriellino18
View Post
I make this post Post New Thread?
Use Post new thread in Scripting Help "http://forum.sa-mp.com/newthread.php?do=newthread&f=12"
Reply
#11

error doble reply
Reply
#12

hello guys sorry but use ****** translate not know English well.
I have a problem with the car since I have a personal server that I have inside 90 personal cars and if I add 2 cars in the server adds them why not me? can be overridden by steam or somewhere in the gamemode?

number of vehicle models:90

I have a new line in the gamemode Created Cars [100];
Reply
#13

Do not post here new thread!
Reply
#14

ok sorry
Reply
#15

Quote:
Originally Posted by [IKS]Niko_Hs™
View Post
Try this code, I did it fast ..

Code:
new Exp[MAX_PLAYERS]; //experience
new Lv[MAX_PLAYERS]; //level
forward LevelUp(playerid);
Ongamemodeinit :

Code:
SetTimer("LevelUp", 1000, false);
out of any callback :

Code:
public LevelUp(playerid)
{
if(LevelNext(playerid) >= Exp[playerid]) {
Exp[playerid] = 0;
Lv[playerid] ++;
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);      
}
}
Code:
stock LevelNext(playerid){
return (Lv[playerid] * 5);
}
Only to increase the experience: Exp[playerid] ++;

Do not promise anything eh

Otherwise, use one of these:

https://sampforum.blast.hk/showthread.php?tid=353225
https://sampforum.blast.hk/showthread.php?tid=274680
This have textdraws ?
Reply
#16

Quote:
Originally Posted by srcka<
View Post
This have textdraws ?
No, this is only Level/EXP system..

For the textdraw use: https://sampforum.blast.hk/showthread.php?tid=117851

After creating the textdraw, use this script..

OnPlayerConnect :

Code:
SetTimerEx("MoneyCheck", 2000, true, "i", playerid);
_______________________

out ay callback
Code:
public CheckMoney(playerid)
{
    new stringcheck[128];
    format(stringcheck, sizeof(stringcheck), "%08dFt", GetPlayerMoney(playerid));
// your textdraw configuration
    return 1;
}
OR USE THIS FS :http://pastebin.com/u0AQs2UL
Reply
#17

with that script for textdraws can i make like this ?

Reply
#18

P.S where is the link of this script ?

https://sampforum.blast.hk/showthread.php?tid=117851
Reply
#19

i make the exp level system but i don't know how to make textdraws please helppp
Reply
#20

the textdraw I gave you were for the money.. sorry.

Zamaratoh TextDraw 1.0 Download !

Unfortunately I can not do the textdraw.. Because I do not know how fartele, use the filterscript, is very simple.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)