View Single Post
Old 13/02/2018, 04:01 PM   #24
ivndosos
Huge Clucker
 
ivndosos's Avatar
 
Join Date: Sep 2014
Location: Russian Federation, Kaliningrad.
Posts: 407
Reputation: 18
Default Re: A little question

This one works perfectly but can I disable that the player who got hit won't see it? because It's distracting!

Code:
		new Float:X,Float:Y,Float:Z;
		GetPlayerPos(playerid,X,Y,Z);
		new obj = CreateObject(1240,X,Y,Z+1.5,0,0,0);
		AttachObjectToPlayer(obj,playerid,0,0,2.0,0,0,0);
		SetTimerEx("DestroyThisAttachedObject",4000,0,"i",obj);
		return 1;
}

forward DestroyThisAttachedObject(obj);
public DestroyThisAttachedObject(obj)
{
    DestroyObject(obj);
    return 1;
}
ivndosos is offline   Reply With Quote