First of all: ENGINES
So, when you enter a car, or any other vehicle, you need to do /start to get the vehicle going.
This could be fun, since then, people can't just goto a car, take it, and drive off.
The commands would be:
/start, and that starts the engine.
/estop, that stops the engine.
/exitcar, this command can be only used when the engine is off.
Also, if someone wants to know, then: The script is tested & working!
So, If you want to use this, then go ahead. I will put the script here: http://pastebin.com/f50960819.
(Just make it into a filterscript, or add it into the main gamemode it self.)
Moving on!
Now, something more simplyer: Cell phone animations!
Yes, I think it would be more simplyer to have the phone animation come out, automaticly, not having to do /celling and /cellout when you feel like it.
The code is pretty short, and verrry simple!
So, when you do, eg. /call 911, you automaticly get the /cellout animation, and when you do /h, it does /cellin.
And again, if you want to use it, that's fine, but here's the script:
Code: Select all
#define SPECIAL_ACTION_USECELLPHONE 11
#define SPECIAL_ACTION_SITTING 12
#define SPECIAL_ACTION_STOPUSECELLPHONE 13
Code: Select all
THE /CALL:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
(Put that one line up from this: format(string, sizeof(string), "* %s takes out a cellphone.", sendername);)
THE /PICKUP:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
(Put it one line up from: format(string, sizeof(string), "* %s answers his cellphone.", sendername);)
THE /HANGUP:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
(Put the code one line up from: format(string, sizeof(string), "* %s pockets the cellphone.", sendername);)
The next is just some new shit in the /animlist.
Use if want to, heres the code:
Code: Select all
if (strcmp("/hurt", cmdtext, true, 4) == 0) {
LoopingAnim(playerid,"SWEET", "SWEET_INJUREDLOOP", 4.0, 1, 0, 0, 0, 0); // hurt
return 1;
}
if (strcmp("/seat", cmdtext, true, 4) == 0) {
LoopingAnim(playerid,"PED", "SEAT_IDLE", 4.0, 1, 0, 0, 0, 0); // Chair Seat
return 1;
}
if (strcmp("/hcover", cmdtext, true) == 0) {
OnePlayAnim(playerid, "PED", "HANDSCOWER", 3.0, 0, 0, 0, 0, 0); // Hand Cover
return 1;
}
Also add the commands into /animlist:
SendClientMessage(playerid,0xAFAFAFAA,"/seat /hurt /hcover");
I also made /rob and /pullincar, but I still need to adjust those, I need to put a cooldown to it, to avoid spammage use, also I need to put them so, that only level 3+ people can use them, otherwise some random noobs will kidnap someone all the time.
If you want more codes, then just ask me, but those would be cool to have on the server. Ok that is all.