PDA

View Full Version : Player spawns with cj skin in las venturas


Sellize
21/06/2013, 05:58 PM
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

Sellize
21/06/2013, 06:07 PM
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

HurtLocker
21/06/2013, 06:32 PM
Read carefully the wiki about addplayerclass. There are coords inputs. use them