21.06.2013, 17:58
I have this
But the player can select a class and it will spawn as cj in lv
Код:
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;
}
}


