AttachObjectToVehicle BUG?
#3

Could be the rotation. For example, the default block object from single player (with lights), if you rotate the object, the lights won't light up.
Try without a roation.

Also, what if the player types:
/neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul /neonazul
You should think more about protecting the other players and server limits.
Код:
new neon[MAX_PLAYERS], neon2[MAX_PLAYERS];
Код:
if(strcmp("/neonazul", cmdtext, true) == 0)
{
	if(neon[playerid])DestroyObject(neon[playerid]), neon[playerid] = 0;
	if(neon2[playerid])DestroyObject(neon2[playerid]), neon2[playerid] = 0;
	neon[playerid] = CreateObject(18648,0,0,0,0,0,0,100.0);
	neon2[playerid] = CreateObject(18648,0,0,0,0,0,0,100.0);
	AttachObjectToVehicle(neon[playerid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	AttachObjectToVehicle(neon2[playerid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	SendClientMessage(playerid, COLOR_WHITE, "Neones Instalados!");
	return 1;
}
Reply


Messages In This Thread
"AttachObjectToVehicle" bug? - by [DOG]irinel1996 - 07.12.2010, 16:01
Re: AttachObjectToVehicle BUG? - by Rafa - 07.12.2010, 23:37
Re: AttachObjectToVehicle BUG? - by Rac3r - 08.12.2010, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)