PDA

View Full Version : [help]AutoSpawn


antonio600x
09/10/2011, 03:10 PM
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?