View Single Post
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 11-04-2018 , 21:13   Re: Is it sprite or code ?
Reply With Quote #10

This way, I think.

Code:
public fl(ent)
{
	// check if entity isn't valid
	if(!pev_valid(ent))
		return;
	
	// new variable for origin and get origin of entity
	static Floatrigin[3];
	pev(ent,pev_origin,origin);
	
	// send the light flash
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
	write_byte(27); // TE_DLIGHT
	write_coord(floatround(origin[0])); // x
	write_coord(floatround(origin[1])); // y
	write_coord(floatround(origin[2])); // z
	write_byte(radius); // radius
	write_byte(255); // r
	write_byte(255); // g
	write_byte(255); // b
	write_byte(255); // life
	write_byte(60); // decay rate
	message_end();	
}
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr