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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: AutoSpawn (
/showthread.php?tid=112297)
AutoSpawn -
Naruto4 - 06.12.2009
i putted this :
Код:
public PlayerSpawn(playerid)
{
if(AccountInfo[playerid][aFaction] == 0)
{
SetSpawnInfo( playerid, 0, 7, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
}
return 1;
}
and added:
Код:
PlayerSpawn(playerid);
in my login part ( OnPlayerLogin)
and it wont spawn me automaticly, i have to press SHIFT to log on
any ideas why ??
Re: AutoSpawn -
*ToM* - 06.12.2009
pawn Код:
public PlayerSpawn(playerid)
{
if(AccountInfo[playerid][aFaction] == 0)
{
SetSpawnInfo( playerid, 0, 7, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
SpawnPlayer(playerid);
}
return 1;
}
try this, but im not sure if it works