[HELP] I spawn at Blueberry -
Jaber_Brown - 10.03.2012
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch( dialogid )
{
case 2:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(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,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_Close(File);
}
}
case 1:
{
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, 28,0,1743.1090,-1863.6298,13.5748,18.0448,0,0,0,0,0,0);
}
else
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
}
return 1;
}
}
}
return 1;
}
I wanna spawn in this coordinates
Код:
28,0,1743.1090,-1863.6298,13.5748,18.0448,0,0,0,0,0,0
Re : [HELP] I spawn at Blueberry -
Jaber_Brown - 10.03.2012
Help me ..
Re: [HELP] I spawn at Blueberry -
Scrillex - 10.03.2012
SetSpawnInfo(playerid, 28,0,1743.1090,-1863.6298,13.5748,18.0448,0,0,0,0,0,0); //change and use x y z not full code 1743.1090,-1863.6298,13.5748 // first is x second y 3rd is z.
Re: [HELP] I spawn at Blueberry -
Twisted_Insane - 10.03.2012
Lol, you got any "AddPlayerClasses" under "OnGameModeInit"?
Re : [HELP] I spawn at Blueberry -
Jaber_Brown - 10.03.2012
yeah , Im new in pawno
Re : [HELP] I spawn at Blueberry -
Jaber_Brown - 10.03.2012
Which one should i remove, Addplayerclass or setspawninfo ?
Re: [HELP] I spawn at Blueberry -
Scrillex - 10.03.2012
You dont need to delete anything just put in SpawnInfo x y z cordinates...
Wiki is our friend here you go
Re: [HELP] I spawn at Blueberry -
Twisted_Insane - 10.03.2012
@Scrillex
Don't talk around here, he already has set the spawninfo, and he also already has got a playerclass!
@Jaber_Brown
COMMENT the line from the "spawninfo", and add this under "OnGameModeInit":
pawn Код:
AddPlayerClass(28,0,1743.1090,-1863.6298,13.5748,18.0448,0,0,0,0,0,0);