Some Tips & Question
#1

Hello,

Could you give me some tips (some example code) to create this:

Return After Crash (if a player crashes, the next time he logs on he would be returned where he crashed)
Weapon Drop (when a player dies pickups would be created around him for the weapons he had)

And i have a question:

Could you tell me the code for the H button (the button you press for the car horn).

Thanks for your time and answers.
Reply
#2

Quote:
Originally Posted by Zeromanster
Hello,

Could you give me some tips (some example code) to create this:

Return After Crash (if a player crashes, the next time he logs on he would be returned where he crashed)
Weapon Drop (when a player dies pickups would be created around him for the weapons he had)

And i have a question:

Could you tell me the code for the H button (the button you press for the car horn).

Thanks for your time and answers.
For the crash position saving I don't think it matters whether the player crashes or disconnects so if you save the location under OnPlayerDisconnect like some filterscript do it should still work. There are quite a few weapon drop scripts and you can either use one of them or write your own after viewing how other people's work. For the horn according to the link(at the bottom) is
Quote:

horn ~VEHICLE_HORN~

or
Quote:

2=HORN/SIRENS

Links
http://forum.sa-mp.com/index.php?topic=115440.0 <--Position Saving
http://forum.sa-mp.com/index.php?topic=24816.0 <--Weapon Drops
http://forum.sa-mp.com/index.php?top...8376#msg138376 <-- Keys
http://forum.sa-mp.com/index.php?top...9567#msg149567 <--Keys
Reply
#3

Quote:
Originally Posted by Yuryfury
Thanks, it all works fine except the weapon drop. It only creates the pickup and when I pick it up it only dissapears without giving me a weapon. This is my only filterscripts on the filterscripts line. What could be the problem ?

Thanks.

EDIT: It's me Zeromanster, I accidently logged on to my old account.
Reply
#4

Well, I used to have this code in my old script, but i cannot find it.

Here's something I had for saving their Position on disconnect..

pawn Код:
GetPlayerPos(playerid, X, Y, Z); //Yeah, this is only gonna work if you have the same enum base.
    PlayerInfo[playerid][pX] += X;
    PlayerInfo[playerid][pY] += Y;
    PlayerInfo[playerid][pZ] += Z;
Mmm, Well, I actually cannot find the rest of this...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)