Player spawns with cj skin in las venturas
#1

I have this
Код:
case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    SetSpawnInfo(playerid, 0, 1, 1810.5715,-1515.2870,5700.4287, 1, 0,0,0,0,0,0);
                    SpawnPlayer(playerid);
                    cc(playerid);
                    SendClientMessage(playerid, -1, "{4CF552}You have successfully logged into {18AD1D}Prison:RP{4CF552}, enjoy your time!");
                }
                else
                {
                    ShowPlayerDialog(playerid, 167, DIALOG_STYLE_INPUT,"Login","Welcome back to Prison:RP\n{F01313}Incorrect password.","Login","Quit");
                }
                return 1;
            }
        }
But the player can select a class and it will spawn as cj in lv
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
That's the default AddPlayerClass location - you need to change that in your mode.
but i dont want classes, i want it so when he logs in/registers it automatically spawns him on 1810.5715,-1515.2870,5700.4287
Reply
#3

Read carefully the wiki about addplayerclass. There are coords inputs. use them
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)