04.10.2011, 11:55
Anyone know any helmet script when you are on motorbike..or how to it i tried
but doesnt work
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(playerid, vehicleid);
public CheckPlayerPos(playerid, vehicleid)
{
if (IsPlayerInVehicle(playerid,vehicleid) == 522 || IsPlayerInVehicle(playerid, vehicleid) == 509
|| IsPlayerInVehicle(playerid, vehicleid) == 481
|| IsPlayerInVehicle(playerid, vehicleid) == 510
|| IsPlayerInVehicle(playerid, vehicleid) == 462
|| IsPlayerInVehicle(playerid, vehicleid) == 448
|| IsPlayerInVehicle(playerid, vehicleid) == 581
|| IsPlayerInVehicle(playerid, vehicleid) == 461
|| IsPlayerInVehicle(playerid, vehicleid) == 521
|| IsPlayerInVehicle(playerid, vehicleid) == 523
|| IsPlayerInVehicle(playerid, vehicleid) == 463
|| IsPlayerInVehicle(playerid, vehicleid) == 586
|| IsPlayerInVehicle(playerid, vehicleid) == 468
|| IsPlayerInVehicle(playerid, vehicleid) == 471)
SetPlayerAttachedObject(playerid, 1, 18645, 2, 0.07, 0, 0, 88, 75, 0);
return 1;
}