Removing Object Problem
#2

Quote:
Originally Posted by SupperRobin6394
Посмотреть сообщение
Hey hey,

Another problem, I want some objects placed by a Player to get removed when he dies, it is a RoadBlock and this is what I have under OnPlayerDeath:
PHP код:
    DestroyObject(RoadBlockObject[playerid]);
    
RoadBlock[playerid] = 0
I got this to create the object (inside the CMD):
PHP код:
            RoadBlockObject[playerid] = CreateObject(979XYZ-0.300Angle);
            
RoadBlock[playerid] = 1
Anyone?
Add under OnPlayerDeath

PHP код:
DestroyObject(RoadBlockObject[playerid]); 
    
RoadBlock[playerid] = 0;  
printf("Destroyed Object: %i",RoadBlockObject[playerid]); 
And post what happends
Reply


Messages In This Thread
Removing Object Problem - by SupperRobin6394 - 22.12.2015, 22:32
Re: Removing Object Problem - by TwinkiDaBoss - 22.12.2015, 23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)