SA-MP Forums Archive
Help Needed, Again. - 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 Needed, Again. (/showthread.php?tid=469469)



Help Needed, Again. - spiderr - 13.10.2013

Hello,
I have United GAme Roleplay II. Whenever, I run this server, It asks for spawn at first, but the spawn has not any other character. It's blank. I want to remove this Spawn, I want that whenever this server runs, it should be spawn automatically.

Thank You.


Re: Help Needed, Again. - Astralis - 13.10.2013

Quote:
Originally Posted by spiderr
Посмотреть сообщение
Hello,
I have United GAme Roleplay II. Whenever, I run this server, It asks for spawn at first, but the spawn has not any other character. It's blank. I want to remove this Spawn, I want that whenever this server runs, it should be spawn automatically.

Thank You.
https://sampforum.blast.hk/showthread.php?tid=450253 you should ask for things like that there, people should know better.


Re: Help Needed, Again. - spiderr - 13.10.2013

Quote:
Originally Posted by Neonman
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=450253 you should ask for things like that there, people should know better.
There I have posted another problem, Haven't got any response yet. "Scripting Help" is a better section to ask for help.


Re: Help Needed, Again. - DanishHaq - 13.10.2013

After the player logs in / registers, just set a timer for 250 milliseconds and then spawn the player.


Re: Help Needed, Again. - Zex Tan - 13.10.2013

I'm not sure, but you could just Add

pawn Код:
SetSpawnInfo(playerid, x, y, z, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);



Re: Help Needed, Again. - spiderr - 13.10.2013

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
After the player logs in / registers, just set a timer for 250 milliseconds and then spawn the player.
How to do that?


Re: Help Needed, Again. - DanishHaq - 13.10.2013

Well find where the player registers or logs in completely, and successfully, and then just set the timer and forward the player ID, a bit like...:

pawn Код:
forward SpawnTimer(playerid);
public SpawnTimer(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
And wherever the player logs in or registers successfully, just put:

pawn Код:
SetTimerEx("SpawnTimer", 250, false, "i", playerid);



Re: Help Needed, Again. - xVIP3Rx - 13.10.2013

pawn Код:
SetTimerEx("SpawnPlayer", 250, false, "u", playerid);
forward SpawnPlayer(playerid);
public SpawnPlayer(playerid)
{
    SetSpawnInfo(playerid, x, y, z, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
    return 1;
}



Re: Help Needed, Again. - spiderr - 13.10.2013

I don't understand where to paste etc..
I have uploaded .pwn in solid files, below is the link of it.
Can you please tell me what to edit here?

http://www.solidfiles.com/d/7bb2417940/

My server IP is 79.143.190.210:7777 .. you can check GM by running.