Jump to content

Level Pe Ore


WiDuAlK

Recommended Posts

e ceva bun ? :)

P.S: Sunt incepator :)

 

http://pastebin.com/qytv7d9b

 

si pt phpmyadmin

 

http://pastebin.com/NPwkApUm

Edited by sRk7

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

Link to comment
Share on other sites

Foarte simplu:

Pui :

if ( exp == 5 )
{
PLayerInfo[ playerid ][ pLevel ] = 2;
}

Dupa ce ai pus variabilile cu pExp= +1)

Faci un timer de 1h si bagi exp++;

Asta nu e pe mysql dar iti va merge cu siguranta,mie imi merge care nu lucrez pe mysql dapai tie.

Edited by Adrian_Petre

 

 

Link to comment
Share on other sites

am gasit gata , pe mine ma interesa un algoritm... Uite unul:

  • if( strcmp( cmdtext, "/buylevel", true ) == 0 )
  • {
  • new iLevelCost = Level[ playerid ] * LEVEL_RATE;
  • if( RespectPoints[ playerid ] < iLevelCost ) return SendClientMessage( playerid, -1, "ERROR: Nu ai destule puncte de respect" );
  • Level[ playerid ] ++;
  • RespectPoints[ playerid ] = ( PremiumPlayer[ playerid ] > 0 ) ? ( RespectPoints[ playerid ] - iLevelCost ) : ( 0 );
  • SendClientMessage( playerid, -1, "LevelUP" );
  • return 1;
  • }
Edited by WiDuAlK.SaMp
Link to comment
Share on other sites

  • 4 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.