Removing Object Problem
#1

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?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)