Quote:
Originally Posted by [GOD]Dragonster82
Ignore him, from my post, it doesn't attaches anything to you when you /seatbelt or /helmet.
And...
Maybe you could do
pawn Код:
new Helmet; // Top of code On GameMode init Helmet = SetPlayerAttachedObject(playerid, 1, 18645, 2, 0.07, 0, 0, 88, 75, 0); if ( vehicleid == 522 || vehicleid == 509 || vehicleid == 481 || vehicleid == 510 || vehicleid == 462 || vehicleid == 448 || vehicleid == 581 || vehicleid == 461 || vehicleid == 521 || vehicleid == 523 || vehicleid == 463 || vehicleid == 586 || vehicleid == 468 || vehicleid == 471 ) SetPlayerAttachedObject(playerid, helmet, 18645, 2, 0.07, 0, 0, 88, 75, 0);
On Player Exit Vehicle if ( vehicleid == 522 || vehicleid == 509 || vehicleid == 481 || vehicleid == 510 || vehicleid == 462 || vehicleid == 448 || vehicleid == 581 || vehicleid == 461 || vehicleid == 521 || vehicleid == 523 || vehicleid == 463 || vehicleid == 586 || vehicleid == 468 || vehicleid == 471 ) RemovePlayerAttachedObject(playerid,helmet);
|
WOn't go since you made only ONE helmet and you destroyed it later. This will fuck up everything coz you have one object for 30+ players and after someone exits vehicle it will be destroyed and it wont be created anymore. Use mine ^^