Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: SkillzVice-City on April 12, 2012, 12:28:37 am

Title: HOW?
Post by: SkillzVice-City on April 12, 2012, 12:28:37 am
MENS please

give me

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

Title: Re: HOW?
Post by: sseebbyy 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;
}
Title: Re: HOW?
Post by: SkillzVice-City on April 12, 2012, 01:04:31 am
Thanks you seeby  ;)
Title: Re: HOW?
Post by: [KB]ViceMania on April 12, 2012, 07:55:04 pm
sseebbyy THE BEST MAN! :P
Title: Re: HOW?
Post by: DilsonTB 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  :-\

Title: Re: HOW?
Post by: sseebbyy 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
Title: Re: HOW?
Post by: DilsonTB 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]
Title: Re: HOW?
Post by: sseebbyy 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 ?
Title: Re: HOW?
Post by: DilsonTB 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