Is it is, I did not find anything wrong with it. I re-installed everything on the host and it worked. But when I restart it, it all goes wrong.
pawn Код:
ptask ServerHeartbeatTwo[1000](playerid)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new myweapons[13][2];
//new szMessage[128];
if(GetPVarInt(playerid, "IsInArena") == -1)
{
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, myweapons[i][0], myweapons[i][1]);
if(PlayerInfo[playerid][pGuns][i] == myweapons[i][0])
{
PlayerInfo[playerid][pGunAmmo][i] = myweapons[i][1];
//format(szMessage, sizeof(szMessage), "* %s has ran out of ammo.", GetPlayerNameEx(playerid));//ran out of ammo check
// ProxDetector(25.0, playerid, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
if(GetPVarInt(playerid, "IsOnFire") && !CanPlayerBurn(playerid, 1))
{
TogglePlayerBurning(playerid, false);
}
if(CanPlayerBurn(playerid) && IsAtFire(playerid))
{
TogglePlayerBurning(playerid, true);
}
#if defined BurnOthers
new Float:x, Float:y, Float:z;
for(new i; i < MAX_PLAYERS; i++)
{
if(playerid != i && IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(CanPlayerBurn(i) && GetPVarInt(playerid, "IsOnFire") && !GetPVarInt(i, "IsOnFire"))
{
GetPlayerPos(i, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, BURNING_RADIUS, x, y, z))
{
TogglePlayerBurning(i, true);
}
}
}
}
#endif
if(IsPlayerInAnyVehicle(playerid)) {
SetPlayerArmedWeapon(playerid, 0);
}
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && JetPack[playerid] == 0 && PlayerInfo[playerid][pAdmin] < 4)
{
new string[74 + MAX_PLAYER_NAME];
format( string, sizeof( string ), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) possibly just loaded s0biet and gave himself a fucking jetpack...Faggot", GetPlayerNameEx(playerid), playerid);
ABroadCast( COLOR_YELLOW, string, 2 );
format(string, sizeof(string), "%s (ID %d) may possibly be jetpack hacking.", GetPlayerNameEx(playerid), playerid);
Log("logs/hack.log", string);
}
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) for(new h = 0; h < sizeof(FamilyInfo); h++)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, FamilyInfo[h][FamilySafe][0], FamilyInfo[h][FamilySafe][1], FamilyInfo[h][FamilySafe][2]))
{
if(FamilyInfo[h][FamilyUSafe] == 1)
{
GameTextForPlayer(playerid, "~y~gang safe~w~~n~Type ~r~/safehelp~w~ for more information", 5000, 3);
}
}
}
if(GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,2.0, -1608.8733,1284.3466,7.1777) || IsPlayerInRangeOfPoint(playerid,2.0, 2101.7676,-1885.9995,13.5469) || IsPlayerInRangeOfPoint(playerid,2.0, 534.2360,913.0679,-42.9609))
{
if(PlayerInfo[playerid][pJob] == 24)
{
new string[128];
format(string, sizeof(string), "~y~Materials Bank~n~Materials storage: ~r~%d ~n~~w~You can restock in San Fierro", matssys[MatsAmmount]);
GameTextForPlayer(playerid, string, 5000, 3);
}
else if(PlayerInfo[playerid][pJob] != 24)
{
new string[128];
format(string, sizeof(string), "~y~Materials Bank~n~Materials storage: ~r~%d", matssys[MatsAmmount]);
GameTextForPlayer(playerid, string, 5000, 3);
}
else if(PlayerInfo[playerid][pJob] == 9)
{
new string[128];
format(string, sizeof(string), "~y~Materials Bank~n~Materials storage: ~r~%d ~n~~w~You can ~g~/getmats ~w~in Los Angeles", matssys[MatsAmmount]);
GameTextForPlayer(playerid, string, 5000, 3);
}
}
if(GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,2.0,325.6044,1123.5282,1083.8828))
{
if(PlayerInfo[playerid][pJob] == 14)
{
new string[128];
format(string, sizeof(string), "~y~Drug House (Pot): %d~n~~y~Drug House (Crack): %d", drugsys[DrugPotAmmount], drugsys[DrugCrackAmmount]);
GameTextForPlayer(playerid, string, 5000, 3);
}
else if(PlayerInfo[playerid][pJob] == 4)
{
new string[128];
format(string, sizeof(string), "~y~Drug House (Pot): %d~n~~y~Drug House (Crack): %d~n~~w~You can /getpot && /getcrack here", drugsys[DrugPotAmmount], drugsys[DrugCrackAmmount]);
GameTextForPlayer(playerid, string, 5000, 3);
}
else
{
new string[128];
format(string, sizeof(string), "~y~Drug House (Pot): %d~n~~y~Drug House (Crack): %d", drugsys[DrugPotAmmount], drugsys[DrugCrackAmmount]);
GameTextForPlayer(playerid, string, 5000, 3);
}
}
if(GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,2.0,-51.4929,1398.0430,1084.4297))
{
new string[128];
format(string, sizeof(string), "~y~Type ~r~/cookheroin~n~~y~to begin cooking your heroin!");
GameTextForPlayer(playerid, string, 5000, 3);
}
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && IsPlayerInRangeOfPoint(playerid,2.0,-1584.3499,-2718.8491,48.5391))
{
new string[128];
format(string, sizeof(string), "~y~Type ~r~/opengarage ~y~to enter the garage.");
GameTextForPlayer(playerid, string, 5000, 3);
}
for(new h = 0; h < sizeof(Points); h++)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz]))
{
if(Points[h][Type] == 1 && GetPVarInt(playerid, "Packages") == 0)
{
GameTextForPlayer(playerid, "~w~Type /getmats to purchase a ~n~~r~materials package", 5000, 5);
}
else if(Points[h][Type] == 3 && PlayerInfo[playerid][pPot] < 3)
{
GameTextForPlayer(playerid, "~w~Type /getseeds to purchase some ~r~pot seeds", 5000, 5);
}
}
}
if(SafeTime[playerid] > 0) {
if(--SafeTime[playerid] == 1 && gPlayerAccount[playerid] == 1 && gPlayerLogged{playerid} == 0) {
SendClientMessageEx(playerid, COLOR_WHITE, "HINT: You can now login by typing your password below.");
}
}
if(PlayerInfo[playerid][pLocal] != 255 && PlayerInfo[playerid][pInt] != 0)
{
new house = PlayerInfo[playerid][pLocal];
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
if(oldposz != 0.0)
{
if(oldposz < 600.0)
{
if(house == 242)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1073.0619,-344.5148,73.9922);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
}
}
}
if(CellTime[playerid] > 0)
{
if (CellTime[playerid] == cchargetime)
{
CellTime[playerid] = 1;
if(Mobile[Mobile[playerid]] == playerid)
{
CallCost[playerid] += callcost;
}
}
CellTime[playerid]++;
if (Mobile[Mobile[playerid]] == INVALID_PLAYER_ID && CellTime[playerid] == 5)
{
if(IsPlayerConnected(Mobile[playerid]))
{
new Float:rX, Float:rY, Float:rZ;
GetPlayerPos(playerid, rX, rY, rZ);
new string[18 + MAX_PLAYER_NAME];
format(string, sizeof(string), "* %s's phone rings.", GetPlayerNameEx(Mobile[playerid]));
RingTone[Mobile[playerid]] = 10;
ProxDetector(30.0, Mobile[playerid], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
if(CellTime[playerid] == 0 && CallCost[playerid] > 0)
{
new string[28];
format(string, sizeof(string), "~w~The call cost~n~~r~$%d",CallCost[playerid]);
GivePlayerCash(playerid, -CallCost[playerid]);
GameTextForPlayer(playerid, string, 5000, 1);
CallCost[playerid] = 0;
}
if(TransportDriver[playerid] < 999)
{
if(GetPlayerVehicleID(playerid) != GetPlayerVehicleID(TransportDriver[playerid]) || !TransportDuty[TransportDriver[playerid]])
{
if(IsPlayerConnected(TransportDriver[playerid]))
{
TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
TransportTime[TransportDriver[playerid]] = 0;
TransportCost[TransportDriver[playerid]] = 0;
new string[36];
format(string, sizeof(string), "~w~Passenger left~n~~g~Earned $%d",TransportCost[playerid]);
GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
TransportDriver[playerid] = 999;
}
}
else if(TransportTime[playerid] >= 16)
{
TransportTime[playerid] = 1;
if(TransportDriver[playerid] < 999)
{
if(IsPlayerConnected(TransportDriver[playerid]))
{
TransportCost[playerid] += TransportValue[TransportDriver[playerid]];
TransportCost[TransportDriver[playerid]] = TransportCost[playerid];
}
}
}
TransportTime[playerid] += 1;
new string[24];
format(string, sizeof(string), "~r~%d ~w~: ~g~$%d",TransportTime[playerid],TransportCost[playerid]);
GameTextForPlayer(playerid, string, 15000, 6);
if(TransportCost[playerid] > GetPlayerCash(playerid))
{
//RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz + 2);
GameTextForPlayer(playerid, "~r~You're flat out of cash!", 4000, 4);
}
}
if(GetPVarInt(playerid, "rccam") == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 594)
{
DestroyVehicle(GetPVarInt(playerid, "rcveh"));
KillTimer(GetPVarInt(playerid, "rccamtimer"));
}
}
}