Author Topic: HOW?  (Read 4316 times)

0 Members and 1 Guest are viewing this topic.

Offline SkillzVice-City

  • Street Thug
  • *
  • Posts: 7
  • The Boss & O.C
    • View Profile
HOW?
« on: April 12, 2012, 12:28:37 am »
MENS please

give me

cmd /c engine on , /C engine off plz!!

-

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: HOW?
« Reply #1 on: April 12, 2012, 12:40:02 am »
ATTENTION: This cmds aren't tested !

I think need to be something like this:

Put this on top (is the variable for see if the engine is already turned on/off) :
Code: [Select]
new Engine[MAX_VEHICLES];

/c engineon
Code: [Select]
else if(strcmp(cmd, "engineon", true) == 0) {
   new vehicleid = GetPlayerVehicleID(playerid);
    if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,COLOR_GREEN,"You need to be in vehicle to can use this cmd !");
    else if(Engine[vehicleid] == 1) SendClientMessage(playerid,COLOR_GREEN,"Your vehicle engine is already on !");
    else {
         RemovePlayerFromVehicle(playerid);
         PutPlayerInVehicle(playerid,vehicleid);
         SendClientMessage(playerid,COLOR_YELLOW,"Vehicle Engine Was Turned ON !");
         Engine[vehicleid] = 1;
    }
return 1;
}

/c engineoff
Code: [Select]
else if(strcmp(cmd, "engineoff", true) == 0) {
   new vehicleid = GetPlayerVehicleID(playerid);
    if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,COLOR_GREEN,"You need to be in vehicle to can use this cmd !");
    else if(Engine[vehicleid] == 0) SendClientMessage(playerid,COLOR_GREEN,"Your vehicle engine is already off !");
    else {
         KillVehicleEngine(vehicleid);
         SendClientMessage(playerid,COLOR_YELLOW,"Vehicle Engine Was Turned OFF !");
         Engine[vehicleid] = 0;
    }
return 1;
}

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline SkillzVice-City

  • Street Thug
  • *
  • Posts: 7
  • The Boss & O.C
    • View Profile
Re: HOW?
« Reply #2 on: April 12, 2012, 01:04:31 am »
Thanks you seeby  ;)
-

Offline [KB]ViceMania

  • Wiseguy
  • **
  • Posts: 53
  • Mega War server administrator
    • View Profile
Re: HOW?
« Reply #3 on: April 12, 2012, 07:55:04 pm »
sseebbyy THE BEST MAN! :P

Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Re: HOW?
« Reply #4 on: April 13, 2012, 12:47:20 am »
Moby can you give me credits... I show you how to do a " /c turnonengine " in LVR  :-\

« Last Edit: April 16, 2012, 05:11:27 am by DilsonTB »
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: HOW?
« Reply #5 on: April 13, 2012, 10:39:16 am »
1(a). Man, i  can't cuse you show me the turnonengine , but i told you how you made it without informations from you (you just afirmed my  teory) --- read 1(b)

2.  I know this teory from  robd. He made a topic "another rpg  functions" or something like this where you can see togglevehicleengine (or something like  this) and is used the same  teory.

1(b). and.. Eject player and put it again in vehicle is very  visible, all players wll know what you did when will test the cmd
« Last Edit: April 13, 2012, 10:45:27 am by sseebbyy »

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Re: HOW?
« Reply #6 on: April 13, 2012, 09:16:39 pm »
1. I notice that you only want to get famous, and dont left credits, i told you i have /c turnon and /c turnoff and show you the cmds. then i explain you how i did it.

2. In that POST of robd, he only realease the /c turnoff, by the function. [He doesnt realeased any idea of /c turnon]

3. I did it first and you saw it in my server so, the idea is yours? Dahhh keep stilling other´s idea and posting as you without credits.

4. You only wants to say: I did  this: .......da......daa.......da by my self :D .

Learn that the world houses wasnt made by one persons, it was by people coordinated, and THEY contructed it. [Not only the engineer]
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: HOW?
« Reply #7 on: April 13, 2012, 10:11:45 pm »
1. I notice that you only want to get famous, and dont left credits, i told you i have /c turnon and /c turnoff and show you the cmds. then i explain you how i did it.

2. In that POST of robd, he only realease the /c turnoff, by the function. [He doesnt realeased any idea of /c turnon]

3. I did it first and you saw it in my server so, the idea is yours? Dahhh keep stilling other´s idea and posting as you without credits.

4. You only wants to say: I did  this: .......da......daa.......da by my self :D .

Learn that the world houses wasnt made by one persons, it was by people coordinated, and THEY contructed it. [Not only the engineer]

Man...
(I don't want to say "You told me to try your command, and after test, I saw (i was ejected and put directly in vehicle) your teory, IS VERY VISIBLE THIS !", so... I will stop to say it ;) )

I will not reproach you anything about what you said about me, I do not care what people think about me, I know who I am. (I'm Sebastian !)

I don't care about credits when are simple cmds .

I want credits when is a system/filterscript/gamemode/photo/video by me .

I will stop this stupid argument and I will let You to think that is your idea.

And about Robd, this is made by Robd:

Code: [Select]
public ToggleEngine(playerid,tmp)
{
new id;
id = GetPlayerVehicleID(playerid);
if(tmp == 0) {
KillVehicleEngine(id);
CarInfo[id][engineon] = 0;
}
else {
RemovePlayerFromVehicle(playerid);
PutPlayerInVehicle(playerid,id);
CarInfo[id][engineon] = 1;
}
return 1;
}

"ToggleEngine(playerid,tmp)" + "tmp == 0" => "KillVehicleEngine(id);" => Engine OFF
"ToggleEngine(playerid,tmp)" + "} else {" => "RemovePlayerFromVehicle(playerid);" + "PutPlayerInVehicle(playerid,id);" => Engine ON


So ...
2. In that POST of robd, he only realease the /c turnoff, by the function. [He doesnt realeased any idea of /c turnon]
Really ?
« Last Edit: April 13, 2012, 10:17:33 pm by sseebbyy »

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Re: HOW?
« Reply #8 on: April 14, 2012, 07:40:50 pm »
:O i saw it.

i have never saw it but keep living with this actitud.

LAST POST
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________