Prokreedz help
1 Attachment(s)
How to make prokreedz plugin to dont make checkpoint while falling , and to display a message like "You can`t make checkpoint while falling" , like in this plugin http://forums.alliedmods.net/showthread.php?t=42367 , pls help me.
|
Re: Prokreedz help
check if velocity z does not contain a negative value ?
|
Re: Prokreedz help
Quote:
|
Re: Prokreedz help
You should try this :
Code:
In my opinion it should be enough for you that's it ! |
Re: Prokreedz help
Please give me the .sma , because i dont know where to put these codes :| , i am a noob in amxx scripting :cry: . 10x thanx
|
Re: Prokreedz help
I added a velocity check into your existing function, so you can just copy and paste over what you already have.
What this does: gets the player's velocity vector, and checks the Z value for vertical motion(X is 0, Y is 2, Z is 2). I figured you might want to have it check for if they've jumped as well, because if they can't checkpoint while crouched, I doubt you want them checkpointing while jumping. If their Z velocity is 0, clearly they aren't on the ground. In another way, you could also check to see if FL_ONGROUND is true on a player. If they aren't on ground, clearly something is amuck. PHP Code:
|
Re: Prokreedz help
Thank you very , very much , i dont know where to put these code :cry: , please give me the .sma file
|
Re: Prokreedz help
I just told you, I took that from YOUR .sma file. Just look for that function and paste over it with the new one in that code box.
|
Re: Prokreedz help
1 Attachment(s)
[IMG]http://http://img225.**************/img225/7282/prokzkl9.jpg[/IMG]
Quote:
Plugin failed to compile! Please try contacting the author.Welcome to the AMX Mod X 1.76-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team /home/groups/alliedmodders/forums/files/2/1/5/0/3/13322.attach(258) : error 029: invalid expression, assumed zero /home/groups/alliedmodders/forums/files/2/1/5/0/3/13322.attach(258) : warning 221: label name "Float" shadows tag name /home/groups/alliedmodders/forums/files/2/1/5/0/3/13322.attach(258) : error 017: undefined symbol "origin" /home/groups/alliedmodders/forums/files/2/1/5/0/3/13322.attach(258) : warning 215: expression has no effect /home/groups/alliedmodders/forums/files/2/1/5/0/3/13322.attach(258) : error 001: expected token: ";", but found "]" /home/groups/alliedmodders/forums/files/2/1/5/0/3/13322.attach(258) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors. [IMG]http://http://img225.**************/img225/7282/prokzkl9.jpg[/IMG] |
Re: Prokreedz help
Delete the origin line, I don't know how it ended up there... maybe my fault, not sure.
It compiles now, at least. PHP Code:
|
| All times are GMT -4. The time now is 22:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.