Level instead of score
#6

And if i want when player register get level 1?
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch( 
dialogid )
    {
        case 
DIALOG_REGISTER:
        {
            if (!
response) return Kick(playerid);
            if(
response)
            {
                if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD""COL_WHITE"Registering...",""COL_RED"Ai introdus o parola gresita.\n"COL_WHITE"Scrie o parola pentru a te inregistra.","Register","Quit");
                new 
INI:File INI_Open(UserPath(playerid));
                
GivePlayerMoney(playerid,10000);
                
SetSpawnInfo(playerid,0,PlayerInfo[playerid][pSkin],1283.5896,-1329.5938,13.3824,89.6460,0,0,0,0,0,0);
                
SetPlayerColor(playerid0xFFFFFFAA);
                
SpawnPlayer(playerid);
                
INI_SetTag(File,"data");
                
INI_WriteInt(File,"Password",udb_hash(inputtext));
                
INI_WriteInt(File,"Cash",0);
                
INI_WriteInt(File,"Admin",0);
                
INI_WriteInt(File,"Level",0);
                
INI_WriteInt(File,"Skin",0);
                
INI_WriteInt(File,"Kills",0);
                
INI_Close(File);
            }
        } 
Reply


Messages In This Thread
Level instead of score - by GabiXx - 05.12.2016, 19:26
Re: Level instead of score - by Yaa - 05.12.2016, 19:42
Re: Level instead of score - by GabiXx - 05.12.2016, 19:45
Re: Level instead of score - by Yaa - 05.12.2016, 19:49
Re: Level instead of score - by setes7 - 05.12.2016, 19:49
Re: Level instead of score - by GabiXx - 05.12.2016, 19:50
Re: Level instead of score - by Vince - 05.12.2016, 20:21
Re: Level instead of score - by Yaa - 05.12.2016, 20:24
Re: Level instead of score - by GabiXx - 05.12.2016, 20:37
Re: Level instead of score - by Yaa - 05.12.2016, 20:39

Forum Jump:


Users browsing this thread: 1 Guest(s)