SA-MP Forums Archive
[Include] Reflectors By OTACON - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Reflectors By OTACON (/showthread.php?tid=430203)



Reflectors By OTACON - OTACON - 13.04.2013

[] Reflectors By OTACON


[] Information:
N/A

[] Video:
[ame]www.youtube.com/watch?v=kRhmiwGdiTA[/ame]

[] function:
pawn Код:
native CreateReflectors_OTACON(slot, Float:x, Float:y, Float:z, Float:a, opcion_OTACON=REFLECTOR_WHITE, height=REFLECTOR_LOW);
native DestroyReflectors_OTACON(slot);
[] Example Usage:
pawn Код:
#include <a_samp>
#include <Reflectors_OTACON>

public OnFilterScriptInit() {
    print("\n===================================");
    print("   ..:::: CREATED BY OTACON ::::..   ");
    print("        - [INC] Reflectors -   ");
    print("       - Version: 0.1 - 2013 -       ");
    print("===================================\n");

    CreateReflectors_OTACON(0, -1308.8099,-365.0616,14.1484,313.1782, REFLECTOR_RED, REFLECTOR_HIGH);
    CreateReflectors_OTACON(1, -1305.8524,-367.9347,14.1484,316.9382, REFLECTOR_WHITE, REFLECTOR_LOW);
    CreateReflectors_OTACON(2, -1303.1444,-371.0578,14.1440,313.9093, REFLECTOR_GREEN, REFLECTOR_MEDIUM);
    return true;
}
public OnFilterScriptExit() {
    print("\n===================================");
    print("   ..:::: CREATED BY OTACON ::::..   ");
    print("        - [INC] Reflectors -   ");
    print("       - Version: 0.1 - 2013 -       ");
    print("===================================\n");
   
    DestroyReflectors_OTACON(0);
    DestroyReflectors_OTACON(1);
    DestroyReflectors_OTACON(2);
    return true;
}
[] Downloads:
http://www.solidfiles.com/d/c9402f9ab5/

[] Password:
Otacon

[] Credits:
OTACON


Re: Reflectors By OTACON - TheSka - 13.04.2013

Is it possible to decrease the reflector's size?


Respuesta: Re: Reflectors By OTACON - OTACON - 13.04.2013

Quote:
Originally Posted by TheSka
Посмотреть сообщение
Is it possible to decrease the reflector's size?
height or light?

height yes, mira el include.
light but you must also change the order by a smaller one. (not included in the include)


Re: Reflectors By OTACON - TheSka - 13.04.2013

The light one, plus what's mira el include..


Re: Reflectors By OTACON - Ballu Miaa - 13.04.2013

Does not look that bad. Keep working and learning. Good work. Rep+4


Re: Reflectors By OTACON - HumildadeAgain - 13.04.2013

Not bad.. Good work friend =D


Re: Reflectors By OTACON - Rock - 13.04.2013

Too much about yourself in the code.
CreateReflectors_OTACON, really?

One of the points of a good code is how short it is to make it easier for scripters to type it.
CreateReflector or DeleteReflector was more than enough.


Re: Reflectors By OTACON - Ryan_Obeles - 16.04.2013

Quote:
Originally Posted by Rockk
Посмотреть сообщение
Too much about yourself in the code.
CreateReflectors_OTACON, really?

One of the points of a good code is how short it is to make it easier for scripters to type it.
CreateReflector or DeleteReflector was more than enough.
He is right too much of your name.... maybe remove that it would be nice


Re: Reflectors By OTACON - gDarius - 16.04.2013

Quote:
Originally Posted by Rockk
Посмотреть сообщение
Too much about yourself in the code.
CreateReflectors_OTACON, really?

One of the points of a good code is how short it is to make it easier for scripters to type it.
CreateReflector or DeleteReflector was more than enough.
Why? you can remove it yourself if you have any problem with that.
None of you give credits to the real creators of scripters using in your servers then why he can't type his names in his release?


Respuesta: Re: Reflectors By OTACON - Glimma - 16.04.2013

Quote:
Originally Posted by TheSka
Посмотреть сообщение
The light one, plus what's mira el include..
mira el include = look the include


Re: Reflectors By OTACON - Ryan_Obeles - 17.04.2013

Quote:
Originally Posted by gDarius
Посмотреть сообщение
Why? you can remove it yourself if you have any problem with that.
None of you give credits to the real creators of scripters using in your servers then why he can't type his names in his release?
Well there is lots of ways to show credits...... check Y_ini and other ****** projects you don't see his name like *****INI_ParseFilehe uses /* */ for credits