Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: SkillzVice-City on April 12, 2012, 12:28:37 am
-
MENS please
give me
cmd /c engine on , /C engine off plz!!
-
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) :
new Engine[MAX_VEHICLES];
/c engineon
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
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;
}
-
Thanks you seeby ;)
-
sseebbyy THE BEST MAN! :P
-
Moby can you give me credits... I show you how to do a " /c turnonengine " in LVR :-\
-
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
-
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]
-
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:
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 ?
-
:O i saw it.
i have never saw it but keep living with this actitud.
LAST POST