[help]AutoSpawn - 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: [help]AutoSpawn (
/showthread.php?tid=288918)
[help]AutoSpawn -
antonio600x - 09.10.2011
Код:
public OnPlayerConnect(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
GameTextForPlayer(playerid,"~w~DOBRODOSLI NA SERVER",3000,4);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{00FF22}LOGIN","{FFFFFF}Unesite vasu lozinku da se logirate!","Login","Izlaz");
SpawnPlayer(playerid);
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{00FF22}REGISTER","{FFFFFF}Unesite zeljenu lozinku da se registrirate!","Register","Izlaz");
}
return 1;
}
I will not be spawn, this is the problem?
Код:
public OnGameModeInit()
{
SetGameModeText("1.0.0|BETA");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(30.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetWeather(1);
SetWorldTime(11);
UsePlayerPedAnims();
// ShowPlayerMarkers(0);
AddPlayerClass(0,1240.5282,-1639.7385,13.5469,86.2016,0,0,0,0,0,0); //Civilian Spawn
return 1;
}
I use zcmd and y_ini? Is it okay?
how to put on the car registration?