[HELP] Some questions to ask :D
to yamikaito : sorry about the pervious post xD
you rock :O ______________ well i wan to ask somethings 1) What is the usefull of static? ANSWER: fysiks Quote:
Quote:
Quote:
ANSWER: fysiks Quote:
Quote:
ANSWER arkshine Quote:
Quote:
Quote:
ANSWER Hunter-Digital Quote:
Quote:
Quote:
5) how to make a player got FLASH red instead of glowing like nemesis zombie that is glowing red and flashing red. arkshine Quote:
EDITED VERSION: ok now u know flash light? of course u would :) ok now i wan to put some kind of flash light around the player . as u can c in the zombie plauge nemesis ( the nemesis is glowing red and got red flash light around him) 6) how to make an ambient sound at only some places? like a radio at somewhere? arkshine <<can give me an example? Quote:
arkshine Quote:
arkshine Quote:
Quote:
fysiks Quote:
Quote:
Hunter-Digital Quote:
Quote:
11) if i wan to take a whole list of player in my server what should i do? thank you xD +k if u help |
Re: [HELP] Some questions to ask :D
1. Use static for variables when the function is called a lot (like PreThink).
2. It's only a label. (You can look up Hungarian Notation) 9. If you get AMX Mod X you have them all. Look in /addons/amxmodx/scripting/includes/ |
Re: [HELP] Some questions to ask :D
3. you can set the velocity if you want it to move with a certain speed... or set the origin to just teleport it there... ex:
PHP Code:
10. stocks are short versions of multiple functions working together to do something... ex (from engine_stocks.inc): PHP Code:
|
Re: [HELP] Some questions to ask :D
oo thx for helping xD realy help me but still i dun understand about stocks can explain more ? :mrgreen:
ooooo hmmm can just make like it float and fly to an origin? like from AAA AAA AAA to BBB BBB BBB? and also can make it multiple? like timing? like 1 second from A TO B another 1 second from B TO C? |
Re: [HELP] Some questions to ask :D
will this work?
Quote:
|
Re: [HELP] Some questions to ask :D
Quote:
2. Pawn does not have different data types so keep that in mind; the language uses only a 4-byte data type called a cell for everything. You can tag a variable with 'Float:' or 'bool:' which tells Pawn how to handle the data stored in the cell but regardless of tagging, it is still a 4-byte cell. There is no string type; a string is only an array of cells, each cell holding a character. Using g_ to prefix a variable is just to remind the scripter [or others looking at your code] that the variable is declared as global [is accessible throughout the script]. This will also prevent accidental use of the incorrect variable if you use the same name for a variable that is declared global and within a function. sz does not do any type of variable declaration either, it is just to signify what kind of data is stored in the variable. You may also see people tag other variables such as iValue [signifying integer] or fValue [signifying float] or bValue [signifying bool [true\false]] |
Re: [HELP] Some questions to ask :D
1. static acts like a global var but the variable is local to the function. 'new' initializes the var each time where 'static' is created one time and is kept in the memory. In a forward called very often static should be used. Actually it's useful for large array because initializing a big array means write a zero for every byte and in a callback called often the performance could be decreased drastically.
2. It's just a label. g as 'global'. You should read this tuto about the Code Styling. 3. Playing with entity's velocity. There are a lot of examples on this forum. 4. If you know both origin, you could calculated the direction ( origin2 - origin1 ), then you could use some velocity in this direction. ( direction * velocity wanted ) 5. Don't fully understand. 6. Using emit_sound(). Actually if you want to place in a know origin, use EngFunc_EmitAmbientSound from fakemeta and passing 0 as entity. 7. There are severals plugins you could take a look, like Tower Defense, there is also Bot API. 8. A weaponbox entity doesn't think. ( only touch ). If you do think a weaponbox entity, it will disappear. ( If I'm remember well ) 9. See all the includes ( *.inc files ) in scripting/includes/ folder. 10. A function with the label 'stock' means that this function will not be included in the compilation if not used. You can get a good description for the usage of public/stock. |
Re: [HELP] Some questions to ask :D
oo thx for replying but there is still somethins i dun understand
3( please explain more in details O.O) 4(also please explain more in details and with some codes :O) and as for 5 i want to make around the player got light . as u know in zombie plauge mod the nemesis got red light beside them and also glowing. i wan to know how to make the red light beside people. 8. ouh, yes when an weapon box entity thinks it disapear but i just want to know where is the part of hlsdk explains that :mrgreen: 9. so if it is not use the whole code in the stock is not used? |
Re: [HELP] Some questions to ask :D
|
Re: [HELP] Some questions to ask :D
Quote:
|
| All times are GMT -4. The time now is 01:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.