exp system - 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: exp system (
/showthread.php?tid=356223)
exp system -
srcka< - 02.07.2012
Hi, I'm new to the forum. This is now required of you is something I'm looking for ages. I exp system RolePlay server. But most important for me to have textdraw under the money and write as
0/400 (this means a Level)
0/800 (2 Level)
etc..
please help me!
i have this picture for little exsample
i have this cmd but level is go up on evry 1 hour and he don't texdraw. i want 1 exp to go up on 1 minute exsampe:
1/400 the 1 exp to chenge evry 1 minute
here is the cmd !
Код:
pLevelSistem
forward Level();
SetTimer("Level",60000,true);
Public Level()
{
new i;
for(i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i))
PlayerInfo[pLevelSistem] ++;
if(PlayerInfo [pLevelSistem] == 1)
{
PlayerInfo[pExp] ++;
PlayerInfo[pLevelSistem] = 0;
ShowClientMesssage(i, COLOR_LIGHTBLUE, "You have 1 exp to play on 1 minute on server");
}
}
}
OnPlayerRegister
format(var, 128, "Time=%d\n",PlayerInfo[playerid][pLevelSistem]);fwrite(hFile, var);
OnPlayerUpdate
format(var, 128, "Time=%d\n",PlayerInfo[playerid][pLevelSistem]);fwrite(hFile, var);
OnPlayerLogin
if( strcmp( key , "Vreme" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevelSistem] = strval( val ); }
sory for my bad english !! please help me !
Re: exp system -
WagnerPM - 02.07.2012
pawn Код:
SetTimer("Level",1000,true);
Re: exp system -
srcka< - 02.07.2012
what is that ? can you exspalin that please
Re: exp system -
M1N1 - 02.07.2012
At Wagner said,
pawn Код:
SetTimer("Level",1000,true);