Helmet script
#1

Anyone know any helmet script when you are on motorbike..or how to it i tried

PHP код:
#include <a_samp>
public OnFilterScriptInit()
{
    
SetTimer("CheckPlayerPos"500,true);
    print(
"\n--------------------------------------");
    print(
" Attach/Deattach Helmet to player");
    print(
" on bike by wumpyc");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
forward CheckPlayerPos(playeridvehicleid);
public 
CheckPlayerPos(playeridvehicleid)
{
    if (
IsPlayerInVehicle(playerid,vehicleid) == 522 || IsPlayerInVehicle(playeridvehicleid) == 509
    
|| IsPlayerInVehicle(playeridvehicleid) == 481
    
|| IsPlayerInVehicle(playeridvehicleid) == 510
    
|| IsPlayerInVehicle(playeridvehicleid) == 462
    
|| IsPlayerInVehicle(playeridvehicleid) == 448
    
|| IsPlayerInVehicle(playeridvehicleid) == 581
    
|| IsPlayerInVehicle(playeridvehicleid) == 461
    
|| IsPlayerInVehicle(playeridvehicleid) == 521
    
|| IsPlayerInVehicle(playeridvehicleid) == 523
    
|| IsPlayerInVehicle(playeridvehicleid) == 463
    
|| IsPlayerInVehicle(playeridvehicleid) == 586
    
|| IsPlayerInVehicle(playeridvehicleid) == 468
    
|| IsPlayerInVehicle(playeridvehicleid) == 471)
    
SetPlayerAttachedObject(playerid11864520.070088750);
    return 
1;

but doesnt work
Reply


Messages In This Thread
Helmet script - by wumpyc - 04.10.2011, 11:55
Re: Helmet script - by TheMaddox - 04.10.2011, 11:57
Re: Helmet script - by [GOD]Dragonster82 - 04.10.2011, 12:03
Re: Helmet script - by hittt - 04.10.2011, 12:04
Re: Helmet script - by wumpyc - 04.10.2011, 12:09
Re: Helmet script - by hittt - 04.10.2011, 12:11
Re: Helmet script - by wumpyc - 04.10.2011, 12:11
Re: Helmet script - by [MG]Dimi - 04.10.2011, 12:14
Re: Helmet script - by [GOD]Dragonster82 - 04.10.2011, 12:16
Re: Helmet script - by [MG]Dimi - 04.10.2011, 12:17

Forum Jump:


Users browsing this thread: 4 Guest(s)