Score system.
#3

Also you can use Dini

You need to include includes, and have basic register system

PHP код:
#include <dini> 
PHP код:
enum pInfo
{
    
pScore
}
new 
PlayerInfoMAX_PLAYERS ][ pInfo ]; 
Add stock

PHP код:
stock GetName(playerid)
{
     new 
nameMAX_PLAYER_NAME+];
     
GetPlayerName(playeridnamesizeofname ));
     return 
name;

in public OnPlayerSpawn(playerid)

PHP код:
new str256+];
formatstrsizeofstr ), "%s.ini"GetName(playerid));
SetPlayerScore(playeriddini_Intfile"Score"); 
in public OnPlayerDisconnect(playerid)

PHP код:
dini_IntSetfile"Score"PlayerInfoplayerid ][ pScore ]); 
in public OnPlayerDeath

PHP код:
PlayerInfokillerid ][ pScore ] ++; 
Reply


Messages In This Thread
Score system. - by Krauser366 - 26.11.2017, 23:39
Re: Score system. - by rfr - 27.11.2017, 06:56
Re: Score system. - by Adain - 27.11.2017, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)