13.05.2018, 12:52
PHP Code:
new pkObjcs[4]; //coloque o mбximo de objetos
stock CreateParkour()
{
pkObjcs[0] = CreateDynamicObject...
pkObjcs[1] = CreateDynamicObject...
pkObjcs[2] = CreateDynamicObject...
pkObjcs[3] = CreateDynamicObject...
//e assim por diante, com todos os objetos do parkour
return 1;
}
stock DestroyParkour()
{
for(new i = 0; i < sizeof(pkObjcs); i++)
{
DestroyDynamicObject(pkObjcs[i]);
pkObjcs[i] = 0;
}
return 1;
}
stock IsParkourCreated()
{
return !!(pkObjcs[0]);
}