SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Bug Reports

Reply
 
Thread Tools Display Modes
Old 29/03/2012, 05:50 PM   #1
BeckzyBoi
High-roller
 
Join Date: Dec 2006
Posts: 1,477
Reputation: 57
Default SpawnPlayer

SpawnPlayer still kills the player if they are in a vehicle. This happens if the spawn position is outside of the players stream zone. However if the spawn position is in the stream zone the player will respawn but their camera stays attached to the vehicle.
BeckzyBoi is online now   Reply With Quote
Old 29/03/2012, 07:08 PM   #2
Jay_
Beta Tester
 
Jay_'s Avatar
 
Join Date: Jul 2009
Posts: 571
Reputation: 111
Default Re: SpawnPlayer

Lol, no offence, but do you ever give up?

I remember that you reported this problem on IRC numerous times during the 0.3a VIP betas.

The original problem was that the function was causing an issue with the players camera when it was used on a player inside a vehicle.
It was changed in one of the 0.3a release candidates to kill the player prior to them being respawned. This change was obviously implemented because there was no other practical solution to the problem yet you continue to constantly express your concern that this is a bug despite the killing action clearly being intentional.

It's obviously an issue in the game and the current fix is obviously the only practical solution available otherwise I'm pretty sure a better way to compromise it would've been implemented at the time.

There are much more important priorities. If this issue is still affecting you that badly then I'm pretty sure you have the scripting knowledge to create a more practical workaround that may suit your needs.
Jay_ is offline   Reply With Quote
Old 29/03/2012, 07:41 PM   #3
kurta999
Gangsta
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Alsószeli, Hungary
Posts: 571
Reputation: 103
Default Re: SpawnPlayer

I don't know then it.

I use this method, in 0.3d this was not work when the player in vehicle. (After spawn, i got beer)
In 0.3e works without any problem, so there are some minor changes.

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    return SetTimerEx("RespawnPlayerAfterDeath", 0, false, "d", playerid);
}

forward RespawnPlayerAfterDeath(playerid);
public RespawnPlayerAfterDeath(playerid)
{
    SetCameraBehindPlayer(playerid);
    SetPlayerHealth(playerid, 100.0);
    return SpawnPlayer(playerid);
}
__________________

Sorry for my bad english.

MB: ASUS M4A785TD-V EVO
CPU: AMD Phenom II x2 550 3.1Ghz@ x4 B50
VGA: MSI GTX460 HAWK 1GB
RAM: 2x2GB RAM A-DATA DDR3 2000X + 2x2GB Patriot 1600LLLA
HDD: 3TB (ST3000DM001-1CH166), 750GB (ST3750640NS), 500GB (WDC WD5000AACS-00G8B1), 250GB (WD-WCANKD980082)
Audio Set: Logitech Z906
Audio Card: Asus Xonar DX/XD
Trafó: Fortron Blue Storm II 500W
Monitor: LG FLATRON M2294D 22 (1680x1050)
Patkány: A4tech XL-747H Blue
Szarság: MSI Star-USB3/SATA6


kurta999 is offline   Reply With Quote
Old 29/03/2012, 09:34 PM   #4
Partner
Little Clucker
 
Partner's Avatar
 
Join Date: Feb 2012
Posts: 40
Reputation: 42
Default Re: SpawnPlayer

Use this script:

pawn Code:
stock SpawnPlayerPlease(playerid)
{
    SetPlayerPos(playerid, 0.0, 0.0, 0.0);
    SpawnPlayer(playerid);
    return 1;
}

Easy as can be.
__________________


[Tutorial] SA:MP Images usage, list and usage.

Please if i helped you.
Partner 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
SpawnPlayer(); WackoX Bug Reports 13 27/02/2012 08:49 PM
SpawnPlayer vladi866 Scripting Help 8 11/01/2012 06:58 PM
SpawnPlayer HondaCBR Scripting Help 3 28/12/2011 12:42 AM
0.3d SpawnPlayer AirPlus Scripting Help 3 04/11/2011 01:10 PM


All times are GMT. The time now is 02:28 AM.


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