19.07.2015, 12:16
It already has an Stock look
PHP код:
stock LoadOOCshop()
{
new FileName[128], string[256];
for(new i = 0; i < MAX_OOCSHOP; i++)
{
format(FileName, sizeof(FileName), "OOCshops/OOCshop_%d.ini", i);
if(dini_Exists(FileName))
{
OOCshopInfo[i][OOCshopObjectID] = dini_Int(FileName, "ObjectID" );
OOCshopInfo[i][OOCshopAngle] = dini_Float(FileName, "Angle" );
OOCshopInfo[i][OOCshopX] = dini_Float(FileName, "X" );
OOCshopInfo[i][OOCshopY] = dini_Float(FileName, "Y" );
OOCshopInfo[i][OOCshopZ] = dini_Float(FileName, "Z" );
OOCshopInfo[i][OOCshopObjectID] = CreateDynamicObject(2754, OOCshopInfo[i][OOCshopX], OOCshopInfo[i][OOCshopY], OOCshopInfo[i][OOCshopZ]-0.1, 0, 0, OOCshopInfo[i][OOCshopAngle],0,0,-1,250);
printf( "[system] OOC Shop %d spawned.", i);
SpawnedOOCshop++;
format(string, sizeof(string), "{01FCFF}[OOC Shop]{F0CC00}\nYou can Purchase OOC Items here\nOOC Shop ID: %d\n[/oocshop]", i);
OOCshop[i] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, OOCshopInfo[i][OOCshopX], OOCshopInfo[i][OOCshopY], OOCshopInfo[i][OOCshopZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,0,-1,-1, 100.0);
}
}
return 1;
}