Player spawns with cj skin in las venturas - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player spawns with cj skin in las venturas (
/showthread.php?tid=445525)
Player spawns with cj skin in las venturas -
Sellize - 21.06.2013
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
Re: Player spawns with cj skin in las venturas -
Sellize - 21.06.2013
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
AW: Player spawns with cj skin in las venturas -
HurtLocker - 21.06.2013
Read carefully the wiki about addplayerclass. There are coords inputs. use them