04.05.2015, 08:08
(
Последний раз редактировалось ihatetn931; 04.05.2015 в 08:43.
)
pawn Код:
public OnGameModeInit()
{
#include "../gamemodes/RPG/objects.pwn"
#include "../gamemodes/RPG/buildings.pwn"
ManualVehicleEngineAndLights();
DisableInteriorEnterExits();
mysql_log(LOG_ERROR | LOG_WARNING,LOG_TYPE_HTML);
dbHandle = mysql_connect("127.0.0.1","username","database","password");
if(mysql_errno() != 0)
{
print("Mysql Failed\n");
}
else
{
print("Mysql Success\n");
}
UsePlayerPedAnims();
SetGameModeText("WIP");
SendRconCommand("mapname WIP");
//Timers
SetTimer("NitroReset", 3000, 1);
LoadAll();
printf("Bulldings Removed %d\n", CountRemovedObjects());
textDrawsGlobal();
WorldTime = SetTimer("UpdateWTime", 1000, true);
skinlist = LoadModelSelectionMenu("skins.txt");
vehiclelist = LoadModelSelectionMenu("vehicles.txt");
for(new v=0; v<MAX_VEHICLES; v++)
{
Vehicle_ReadPosition(v);
}
for(new i=0; i<GetMaxPlayers(); i++)
{
textDrawsPlayers(i);
}
return 1;
}