10.07.2016, 10:00
Type it where your all new's are
and Load your parkour object like that
PHP код:
new MGObj[MAX_PLAYERS][29125];
PHP код:
MGObj[0]=CreateDynamicObject(0, 0, 0, 0.00000, -0, 0.00000,-1,-1,playerid);
MGObj[1]=CreateDynamicObject(0, 0, 0, 0.00000, -0, 0.00000,-1,-1,playerid);
MGObj[2]=CreateDynamicObject(0, 0, 0, 0.00000, -0, 0.00000,-1,-1,playerid);
CMD:leave( playerid, params[ ] )
{
HideObjects(playerid);
return 1;
}
forward HideObjects(playerid);
public HideObjects(playerid)
{
for(new i = 0;i<3;i++) /// 3 is the objects change it to your objects amount
{
if(IsValidDynamicObject(MGObj[playerid][i]))
{
DestroyDynamicObject(MGObj[playerid][i]);
}
}
return 1;
}