Help Needed, Again.
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

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

I'm not sure, but you could just Add

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

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?
Reply
#7

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);
Reply
#8

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;
}
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)