Paste Description for RC Entering Filterscript
Allows you to enter remote control cars...
- RC Entering Filterscript
- Friday, June 8th, 2007 at 7:50:08pm MDT
- #include <a_samp>
- #define SLOTS 4
- new RCSkins[] =
- {
- 441,
- 594,
- 564,
- 501,
- 465,
- 464
- };
- forward keys();
- public OnFilterScriptInit()
- {
- print(" ");
- print(" 0.2 RC SCRIPT");
- print(" thanks to Ramjet");
- print(" based on code by Mabako and Cam!");
- print(" ");
- SetTimer("keys",200,1);
- }
- public keys()
- {
- new lKeys, Mike1, Mike2;
- new Float:px,Float:py,Float:pz;
- new Float:cx,Float:cy,Float:cz;
- for(new i = 0; i < SLOTS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GetPlayerPos(i,px,py,pz);
- for(new j = 0; j < MAX_VEHICLES; j++)
- {
- for(new k; k < sizeof(RCSkins); k++)
- {
- if(GetVehicleModel(j) == RCSkins[k])
- {
- GetVehiclePos(j,cx,cy,cz);
- if( floatsqroot( floatpower(px-cx,2.0) + floatpower(py-cy,2.0) + floatpower(pz-cz,2.0)) < 3.0)
- {
- GetPlayerKeys(i, lKeys, Mike1, Mike2);
- if (lKeys & KEY_SECONDARY_ATTACK)
- {
- PutPlayerInVehicle(i, j, 0);
- }
- }
- }
- }
- }
- }
- }
- }
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.