29.03.2011, 22:14
Hey!
Just wondering if anyone can help me, with this code it loads all of my organizations when the server is restarted, but its not working for some reason. I've added it to OnGameModeInit.
When I spawn I see the checkpoint for like one second, but its on my current x, y, z. Then it dissapears, I'm quite confused.
Any help?
Just wondering if anyone can help me, with this code it loads all of my organizations when the server is restarted, but its not working for some reason. I've added it to OnGameModeInit.
When I spawn I see the checkpoint for like one second, but its on my current x, y, z. Then it dissapears, I'm quite confused.
pawn Code:
stock LoadOrganizations()
{
for(new i = 0; i < MAX_ORGS; i++)
{
format(oFile, sizeof(oFile), "zRP/Organizations/%i.ini", OrganizationInfo[i][OrganizationID]);
OrganizationInfo[i][OrganizationID] = dini_Int(oFile, "OrganizationID");
OrganizationInfo[i][OrganizationCP] = dini_Int(oFile, "OrganizationCP");
OrganizationInfo[i][OrganizationName] = dini_Int(oFile, "OrganizationName");
OrganizationInfo[i][OrganizationType] = dini_Int(oFile, "OrganizationType");
OrganizationInfo[i][OrganizationX] = dini_Float(oFile, "OrganizationX");
OrganizationInfo[i][OrganizationY] = dini_Float(oFile, "OrganizationY");
OrganizationInfo[i][OrganizationZ] = dini_Float(oFile, "OrganizationZ");
OrganizationInfo[i][OrganizationCP] = CreateCheckpoint(-1, OrganizationInfo[i][OrganizationX], OrganizationInfo[i][OrganizationY], OrganizationInfo[i][OrganizationZ], 1.0, 10);
}
return 1;
}