03.12.2011, 12:38
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPVarInt(i, "elegy", 1);
SetPVarInt(i, "elegywhite", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(i, "elegywhite1", CreateObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(i, "elegywhite"), Elegy, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(i, "elegywhite1"), Elegy, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SetPVarInt(i, "daspoiler", CreateObject(1139,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(i, "daspoiler"), Elegy, -0.0039, -2.0976, 0.309, 0.0, 0.0, 0.0);
}
return 1;
}