Entonces el problema estб cuando inicia el gamemode, їque cosas tenйs adentro de OnGameModeInit?
pawn Код:
public OnGameModeInit()
{
AntiDeAMX();
new string[MAX_PLAYER_NAME];
new string1[MAX_PLAYER_NAME];
for(new c=0; c<CAR_AMOUNT; c++)
{
Gas[c] = GasMax;
}
CarInit();
//LoadCar();
LoadProperty();
LoadBizz();
LoadSBizz();
LoadBoxer();
LoadStuff();
CreateFoodMenus();
LoadIRC();
LoadFamilies();
LoadCK();
LoadTurfs();
LoadPapers();
Pickups();
IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
IRCInfo[9][iPlayers] = 0;
News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
format(string, sizeof(string), "Nothing");
strmid(News[hAdd1], string, 0, strlen(string), 255);
strmid(News[hAdd2], string, 0, strlen(string), 255);
strmid(News[hAdd3], string, 0, strlen(string), 255);
strmid(News[hAdd4], string, 0, strlen(string), 255);
strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one");
strmid(News[hContact1], string1, 0, strlen(string1), 255);
strmid(News[hContact2], string1, 0, strlen(string1), 255);
strmid(News[hContact3], string1, 0, strlen(string1), 255);
strmid(News[hContact4], string1, 0, strlen(string1), 255);
strmid(News[hContact5], string1, 0, strlen(string1), 255);
PlayerHaul[78][pCapasity] = 100;
PlayerHaul[79][pCapasity] = 100;
PlayerHaul[80][pCapasity] = 50;
PlayerHaul[81][pCapasity] = 50;
format(objstore, sizeof(objstore), "MOLE: No tengo nada vuelve conmigo mas tarde.");
format(cbjstore, sizeof(cbjstore), "HQ: No hay nada, Fuera.");
gettime(ghour, gminute, gsecond);
FixHour(ghour);
ghour = shifthour;
if(!realtime)
{
SetWorldTime(wtime);
}
SetPDistance(10);
ShowNameTags(1);
AllowInteriorWeapons(0);
EnableStuntBonusForAll(0);
SetGameModeText("GameSoft RP v1.0");
//UsePlayerPedAnims();
DisableInteriorEnterExits();
SetTimer("MTD", 1000, 1);
new text_info[256];
format(text_info,256,"[ SAPD ]");
Create3DTextLabel(text_info,Amarillo,1554.7249,-1675.8083,16.1953+0.75,20.0,0,1);
new text_infoF[256];
format(text_infoF,256,"[ Hospital ]");
Create3DTextLabel(text_infoF, Amarillo,1172.3628,-1323.7028,15.4038+0.75,20.0,0,1);
new text_infoA[256];
format(text_infoA,256,"[ Alhambra (Discoteca) ]");
Create3DTextLabel(text_infoA, Amarillo,1836.5177,-1682.3197,13.3446+0.75,20.0,0,1);
new text_infoT[256];
format(text_infoT,256,"[ Cabina Telefonica ]");
Create3DTextLabel(text_infoT, Amarillo,1809.9866,-1899.9613,13.5773+0.75,20.0,0,1);
new text_infoB[256];
format(text_infoB,256,"[ BANCO ]");
Create3DTextLabel(text_infoB, Amarillo,1462.2333,-1011.4362,26.8438+0.75,20.0,0,1);
new text_infoFBI[256];
format(text_infoFBI,256,"[ F.B.I ]");
Create3DTextLabel(text_infoFBI, Amarillo,288.7287,168.5377,1007.1719+0.75,20.0,0,1);
new text_ayunta[256];
format(text_ayunta,256,"[ Ayuntamiento ]");
Create3DTextLabel(text_ayunta, Amarillo,1481.2721,-1771.2805,18.7958+0.75,20.0,0,1);
new text_DNI[256];
format(text_DNI,256,"Usa /Papeles Adquirir un DNI\nY poder Legalizarte");
Create3DTextLabel(text_DNI, Amarillo,-1844.6761,60.2902,1055.1328+0.75,20.0,0,1);
/* TextDraws, Vehiculos, Objetos */
for(new h = VV_DESDE; h < sizeof(CarInfo); h++)
{
AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],300000);
}
// CreatedCars check
for(new i = 0; i < sizeof(CreatedCars); i++)
{
CreatedCars[i] = 0;
}
// Zones
for(new i = 0; i < sizeof(TurfInfo); i++)
{
Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
}
// Player Class's
for(new i = 0; i <= sizeof(Peds)-1; i++)
{
AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
if(HouseInfo[h][hOwned] == 1)
{
AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
}
if(BizzInfo[h][bOwned] == 1)
{
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
}
if(SBizzInfo[h][sbOwned] == 1)
{
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
}
}
//+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
synctimer = SetTimer("SyncUp", 60000, 1);
unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);
othtimer = SetTimer("OtherTimer", 1000, 1);
cartimer = SetTimer("CarCheck", 30000, 1);
pickuptimer = SetTimer("CustomPickups", 1000, 1);
spectatetimer = SetTimer("Spectator", 2000, 1);
idletimer = SetTimer("IdleKick", idletime, 1);
productiontimer = SetTimer("Production", 300000, 1);
accountstimer = SetTimer("SaveAccounts", 1800000, 1);
checkgastimer = SetTimer("CheckGas", RunOutTime, 1);
stoppedvehtimer = SetTimer("StoppedVehicle", RunOutTime, 1);
SetTimer("CLimpiar", 1000, 0);
if(realtime)
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
SetWorldTime(tmphour);
}
return 1;
}
Include: En pawno: #include <xStreamer> y en includes xStreamer.
Sino debe ser otro FS o tal vez no pusistes la contraseсa en el RCON del server.cfg o no tenes la v. correcta, no se xD
No, no tranquilos, ya lo solucione, era por la versiуn... (ya me parecia raro!)