[FilterScript] [FS] Tramplins Spawn
#1

Tramplins Spawn Filter Script create object tramp(1245) when player sit at any vehicle and press lmb or alt(as deafult)
Count of tramp unlimited, it\'s not sunc, becouse used CreatePlayerObject.
Tramps auto destroyed below 1.5sec

PasteBin PWN
tramp.amx

pawn Code:
#include <a_samp>

forward DelObj(playerid,Obj);
public DelObj(playerid,Obj)DestroyPlayerObject(playerid,Obj);

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if ((newkeys & KEY_FIRE)) {
        if (IsPlayerInAnyVehicle(playerid)) {
            new Float:x,Float:y,Float:z;
            new Float:x2,Float:y2,Float:az;
            GetPlayerPos(playerid,x,y,z);

            GetVehicleZAngle(GetPlayerVehicleID(playerid), az);
            x2 = x + (10 * floatsin(-az+5, degrees));
            y2 = y + (10 * floatcos(-az+5, degrees));
            new Obj=CreatePlayerObject(playerid,1245,x2,y2,z,0,0,az-90);
            SetTimerEx("DelObj",1500,0,"d d",playerid,Obj);
        }
    }
}

public OnFilterScriptInit()
{
    print("
----------------------------------"
);
    print(" De[M]oN\'s [FS] Tramplins Spawn");
    print("----------------------------------
"
);
    return 1;
}
Reply
#2

can you put here .amx file too plz plz plz plz because my pawno don\'t want compile any pwn
Reply
#3

Quote:
Originally Posted by KrifOk
can you put here .amx file too plz plz plz plz because my pawno don\'t want compile any pwn
http://up.li.ru/?id=299155;tramp.amx
Reply
#4

Does this put a trampaline in front of your car?
Reply
#5

Quote:
Originally Posted by [CBK
$$$PiMp ]
Does this put a trampaline in front of your car?
yes it does


<removed - speak English>
Reply
#6

Quote:

Need Russian IP to access free downloads

wtf
Reply
#7

Quote:
Originally Posted by [Sco
Dave ]
Quote:

Need Russian IP to access free downloads

wtf
plz get other file hosting, what you want =)
Reply
#8

this not work the stunt not spawn
Reply
#9

Mirror
http://ren.redsys.ru/_private/tramp.amx
Reply
#10

I love this script. But how i can do, that the ramp ONLY comes when the player press "Alt" on the keyboard ?
Reply
#11

I sit in car i press mouse left and tramplin spawns front of me.
But why only for 1 sec??
CAn i set my own time hoe long trampli will stay there.??
Reply
#12

Topic: San Fierro [Tramplins]
Reply
#13

Quote:
Originally Posted by Warriors_Tornado
I sit in car i press mouse left and tramplin spawns front of me.
But why only for 1 sec??
CAn i set my own time hoe long trampli will stay there.??
You can change time to destroy tramp, but 1.5sec is optimal value.

SetTimerEx("DelObj",1500,0,"d d",playerid,Obj);

1500 - time in ms to destroy tramp object, change it.
Reply
#14

I can\'t compile it, I copy and pasted the code to make it 3000 ms.

I get 5 errors and 5 warnings. Do I need to include anything?

Code:
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(4) : error 017: undefined symbol "DestroyPlayerObject"
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(6) : warning 235: public function lacks forward declaration (symbol "OnPlayerKeyStateChange")
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(8) : error 017: undefined symbol "KEY_FIRE"
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(14) : error 017: undefined symbol "GetVehicleZAngle"
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(17) : error 017: undefined symbol "CreatePlayerObject"
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(18) : error 017: undefined symbol "SetTimerEx"
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(17) : warning 204: symbol is assigned a value that is never used: "Obj"
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(16) : warning 204: symbol is assigned a value that is never used: "y2"
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(15) : warning 204: symbol is assigned a value that is never used: "x2"
C:\Documents and Settings\Dennis\Skrivbord\samp-server-0.2.1-win32\pawno\Jump.pwn(15 -- 23) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
// Dealman
Reply
#15

can i change time to tramplins??
Reply
#16

SetTimerEx("DelObj",1500,0,"d d",playerid,Obj);

Change 1500 to, i don\'t know, 2500...
Reply
#17

how i can do, that the ramp ONLY comes when the player press "Alt" on the keyboard ?
Reply
#18

yes i wanted to ask the same and i wanted to ask how can i change the style iwant tu put only those blue ramps bigeest

i can only change the id and thats all??
Reply
#19

Code:
new Obj=CreatePlayerObject(playerid,1245,x2,y2,z,0,0,az-90);
SetTimerEx("DelObj",1500,0,"d d",playerid,Obj);
1245 - Is the current ID.

1500 - Is the current time in MS (Millisecconds -> 1,5seconds.)
Reply
#20

yes i founded how to change time and how to change rampe style
I am using 1632 id. I set 1 min beceuse i like to turn back and jump again

But how can i put ramps like objects?I want to put hem on one place and i want that they are staying all the time
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)