04.10.2011, 12:16
Quote:
yep i wont without any commands...only if you are on bike get helmet else not
|
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);