SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/08/2015, 04:03 PM   #1
exdev
Little Clucker
 
Join Date: Dec 2012
Posts: 31
Reputation: 7
Default SetSpawnInfo help please

Hello all.

Already a week I try to find a way to correct use SetSpawnInfo.

The fact is that after the first death, the server sends the player to class selection (<< >>), but SetSpawnInfo was used in OnPlayerConnect. Why?

How to make that the player don't go to the class selection, and are not spawn on the Grove Street with bottle or cigarette?
Wherein the button Spawn should not be pressed (<< >> Spawn).

Help me please, and sorry for my bad English...
exdev is offline   Reply With Quote
Old 14/08/2015, 04:13 PM   #2
MichaelJones
Banned
 
Join Date: Feb 2015
Posts: 135
Reputation: 29
Default Re: SetSpawnInfo help please

To spawn the player when he connect , do it

Quote:
public OnPlayerConnect(playerid)
{
SpawnPlayer(playerid);
return 1;
}
To prevent spawning in grove street with cigar
do this

Quote:
OnPlayerDeath(Playerid)
{
RemovePlayerFromVehicle(playerid);
return 1;
}
enjoy
MichaelJones is offline   Reply With Quote
Old 14/08/2015, 04:50 PM   #3
exdev
Little Clucker
 
Join Date: Dec 2012
Posts: 31
Reputation: 7
Default Re: SetSpawnInfo help please

You dont understand me

First spawn is good, but spawn after first death don't occurs and sends player to class selection.

How to make the player spawns properly after the first death and always, and was not forced to choose class after death?

Thanks.
exdev is offline   Reply With Quote
Old 14/08/2015, 04:55 PM   #4
Bingo
High-roller
 
Bingo's Avatar
 
Join Date: Jul 2012
Location: United Arab Emirates.
Posts: 1,690
Reputation: 238
Default Re: SetSpawnInfo help please

Show your OnPlayerDeath.
Bingo is offline   Reply With Quote
Old 14/08/2015, 05:33 PM   #5
exdev
Little Clucker
 
Join Date: Dec 2012
Posts: 31
Reputation: 7
Default Re: SetSpawnInfo help please

Code:
public OnPlayerDeath(playerid,killerid,reason)
{
	if(!PlayerLogged[playerid]) return 0;
	pData[playerid][Deaths]++;
	if(PlayerLogged[killerid] && killerid != playerid) pData[killerid][Kills]++;
	pData[playerid][AFK] = -2;
	return 1;
}
exdev is offline   Reply With Quote
Old 14/08/2015, 06:46 PM   #6
MichaelJones
Banned
 
Join Date: Feb 2015
Posts: 135
Reputation: 29
Default Re: SetSpawnInfo help please

Make it
Quote:
public OnPlayerDeath(playerid, killerid, reason)
{
if(!PlayerLogged[playerid]) return 0;
pData[playerid][Deaths]++;
if(PlayerLogged[killerid] && killerid != playerid) pData[killerid][Kills]++;
pData[playerid][AFK] = -2;
SpawnPlayer(playerid);
return 1;
}
Because something is glitched in your whole mode.
MichaelJones is offline   Reply With Quote
Old 14/08/2015, 06:51 PM   #7
exdev
Little Clucker
 
Join Date: Dec 2012
Posts: 31
Reputation: 7
Default Re: SetSpawnInfo help please

Quote:
Originally Posted by MichaelJones View Post
Make it


Because something is glitched in your whole mode.
Momentary spawn is not good... Thanks for answer.

On some servers bypass the class selection, how?
exdev is offline   Reply With Quote
Old 14/08/2015, 07:09 PM   #8
Toxik
Banned
 
Join Date: Oct 2013
Location: Croatia
Posts: 516
Reputation: 10
Default Re: SetSpawnInfo help please

Try re-complie your script with right pawno
located in folder where is the script
if you using

pawn Code:
SetSpawnInfo
remove it cuz its making glitches
same problem happend to me with SetSpawnInfo
Toxik is offline   Reply With Quote
Old 14/08/2015, 07:20 PM   #9
exdev
Little Clucker
 
Join Date: Dec 2012
Posts: 31
Reputation: 7
Default Re: SetSpawnInfo help please

Remove SetSpawnInfo? But it is present in almost all modes viewed me...
exdev is offline   Reply With Quote
Old 14/08/2015, 07:23 PM   #10
Toxik
Banned
 
Join Date: Oct 2013
Location: Croatia
Posts: 516
Reputation: 10
Default Re: SetSpawnInfo help please

when i used it, i had same problem i just removed it and replaced with new callbacks i made for my gm
Toxik is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SetSpawnInfo MrCallum Scripting Help 2 27/11/2014 07:19 PM
[Ajuda] SetSpawnInfo Ts3 PortuguÍs/Portuguese 6 26/06/2014 04:08 PM
SetSpawnInfo Riddick94 Scripting Help 9 21/01/2014 05:51 PM
SetSpawnInfo Bek_Loking Scripting Help 1 30/09/2013 07:38 PM
Help with SetSpawnInfo matute Help Archive 6 19/12/2010 09:29 PM


All times are GMT. The time now is 09:16 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.