SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 11/03/2012, 03:08 PM   #1
Dan_Barocu
High-roller
 
Dan_Barocu's Avatar
 
Join Date: Mar 2011
Location: Romania
Posts: 1,010
Reputation: 6
Default Crash[rep]

what to i do so if i get crash and i get back to the same crash location..understand??please help giving rep!
Dan_Barocu is offline   Reply With Quote
Old 11/03/2012, 03:15 PM   #2
Dan_Barocu
High-roller
 
Dan_Barocu's Avatar
 
Join Date: Mar 2011
Location: Romania
Posts: 1,010
Reputation: 6
Default Re: Crash[rep]

or if i relog i want the location from where i reloged.
Dan_Barocu is offline   Reply With Quote
Old 11/03/2012, 03:24 PM   #3
mrskull42
Big Clucker
 
mrskull42's Avatar
 
Join Date: Apr 2010
Location: United Kingdom
Posts: 72
Reputation: 8
Default Re: Crash[rep]

Please explain more, I can't seem to understand what you mean.
__________________
mrskull42 is offline   Reply With Quote
Old 11/03/2012, 03:26 PM   #4
eesh
Big Clucker
 
Join Date: Mar 2012
Posts: 194
Reputation: 42
Default Re: Crash[rep]

pawn Code:
new died[MAX_PLAYERS];

public OnPlayerDeath(playerid,killerid,reason)
{
    died[playerid] =1;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(died[playerid] == 1)
    {
        SetPlayerPos(playerid,...);//hospital coords...
        died[playerid]=0;
    }
    return 1;
}
This will spawn you at hospital.

Save the players X,Y,Z when he disconnects and Load when he logs him. Spawn him with those coords when he spawns
eesh is offline   Reply With Quote
Old 11/03/2012, 03:27 PM   #5
Infamous
Gangsta
 
Infamous's Avatar
 
Join Date: May 2009
Location: Essex, England
Posts: 663
Reputation: 65
Default Re: Crash[rep]

Save the players last known position to their player file and load it once they have spawned.

Edit: solution posted above my post.
__________________

Infamous is offline   Reply With Quote
Old 11/03/2012, 03:31 PM   #6
mrskull42
Big Clucker
 
mrskull42's Avatar
 
Join Date: Apr 2010
Location: United Kingdom
Posts: 72
Reputation: 8
Default Re: Crash[rep]

Read this http://forum.sa-mp.com/showthread.php?t=48439 it may help you
__________________
mrskull42 is offline   Reply With Quote
Old 11/03/2012, 05:14 PM   #7
Dan_Barocu
High-roller
 
Dan_Barocu's Avatar
 
Join Date: Mar 2011
Location: Romania
Posts: 1,010
Reputation: 6
Default Re: Crash[rep]

well u dont understand..so if i relog i want him to spawn from where he loged..get it?
Dan_Barocu is offline   Reply With Quote
Old 11/03/2012, 05:27 PM   #8
WardenCS
Gangsta
 
WardenCS's Avatar
 
Join Date: Feb 2009
Posts: 899
Reputation: 14
Default Re: Crash[rep]

make the coords save when u disconnect and when u log then set players pos there
__________________
WardenCS

My creations
[Filterscript]Shoeties
[Filterscript]Body system


Request your scripts/snippets from me, PM me.
WardenCS is offline   Reply With Quote
Old 11/03/2012, 05:31 PM   #9
mrskull42
Big Clucker
 
mrskull42's Avatar
 
Join Date: Apr 2010
Location: United Kingdom
Posts: 72
Reputation: 8
Default Re: Crash[rep]

There's a tutorial on how to do this, use http://forum.sa-mp.com/showthread.php?t=276694 hope it helps
__________________
mrskull42 is offline   Reply With Quote
Old 11/03/2012, 05:46 PM   #10
Dan_Barocu
High-roller
 
Dan_Barocu's Avatar
 
Join Date: Mar 2011
Location: Romania
Posts: 1,010
Reputation: 6
Default Re: Crash[rep]

yep..i tried and no work..as u can see the comments from tutorial..not a good tutorial..can u show me what to do??
Dan_Barocu 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
Fatal Game crash, Not client or server crash SourceCode Scripting Help 3 11/10/2011 05:13 PM
[Crash] Samp 0.3c Crash jason121 Client Support 9 27/09/2011 03:07 PM
Crash, Crash и еще раз крэш... Xotab Русский/Russian 3 25/01/2011 03:04 PM
Crash (Crash details enclosed) International Help Archive 3 16/09/2009 08:31 PM
SA-MP Crash - Death = Crash godlyliar Server Support 4 23/02/2009 06:51 AM


All times are GMT. The time now is 04:29 AM.


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