help lz i do some thing wrong ? or ? cause before it work normally i don't know i do some thing wrong
Код:
new PlayerBar:BarHungry;
new PlayerBar:BarSleep;
new PlayerBar:BarDefecate;
new Text:SleepBar[MAX_PLAYERS];
new Text:HungryBar[MAX_PLAYERS];
new PlayerText:DefecateBar[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
//Delete Object for Otto Car in Los santos
RemoveBuildingForPlayer(playerid, 5967, 1259.4375, -1246.8125, 17.1094, 0.25);
RemoveBuildingForPlayer(playerid, 1388, 1238.4000, -1258.3000, 57.2000, 0.25);
RemoveBuildingForPlayer(playerid, 1391, 1238.3750, -1258.2734, 44.6641, 0.25);
RemoveBuildingForPlayer(playerid, 1294, 1254.6875, -1276.1641, 17.0781, 0.25);
RemoveBuildingForPlayer(playerid, 5857, 1259.4375, -1246.8125, 17.1094, 0.25);
//Prison Los Santos
RemoveBuildingForPlayer(playerid, 14843, 266.3516, 81.1953, 1001.2813, 0.25); //Prison Door
//Door FBI San Fierro
RemoveBuildingForPlayer(playerid, 966, -1572.2031, 658.83594, 6.07813, 6.0111284);
RemoveBuildingForPlayer(playerid, 966, -1701.4297, 687.59375, 23.88281, 6.0111284);
//Door Royal Army San Fierro
RemoveBuildingForPlayer(playerid, 966, -1526.3906, 481.38281, 6.17969, 6.0111284);
RemoveBuildingForPlayer(playerid, 968, -1526.4375, 481.38281, 6.90625, 5.576333);
//Trees in SAMD Los Santos Area
RemoveBuildingForPlayer(playerid, 739, 1231.1406, -1356.2109, 12.73438, 40.473133);
RemoveBuildingForPlayer(playerid, 620, 1222.6641, -1374.6094, 12.29688, 22.657042);
RemoveBuildingForPlayer(playerid, 620, 1222.6641, -1335.0547, 12.29688, 22.657042);
RemoveBuildingForPlayer(playerid, 620, 1240.9219, -1356.5547, 12.29688, 22.657042);
RemoveBuildingForPlayer(playerid, 620, 1240.9219, -1317.7422, 12.29688, 22.657042);
RemoveBuildingForPlayer(playerid, 620, 1222.6641, -1300.9219, 12.29688, 22.657042);
RemoveBuildingForPlayer(playerid, 620, 1184.0078, -1353.5, 12.57813, 22.657042);
//Motel in Lossan tos Is Licenmanager
RemoveBuildingForPlayer(playerid, 6056, 701.4375, -1417.125, 17.66406, 7.9010029);
//Dellimore
/*RemoveBuildingForPlayer(playerid, 13243, 705.039, -503.468, 15.335, 0.250);
RemoveBuildingForPlayer(playerid, 13137, 646.164, -527.898, 28.070, 0.250);
RemoveBuildingForPlayer(playerid, 1294, 712.835, -521.335, 19.703, 0.250);
RemoveBuildingForPlayer(playerid, 1688, 706.242, -507.773, 21.289, 0.250);
RemoveBuildingForPlayer(playerid, 1690, 706.132, -510.289, 20.976, 0.250);
RemoveBuildingForPlayer(playerid, 1308, 711.875, -516.265, 15.617, 0.250);
RemoveBuildingForPlayer(playerid, 1308, 691.648, -500.210, 15.687, 0.250);
RemoveBuildingForPlayer(playerid, 1294, 700.617, -493.546, 19.851, 0.250);
RemoveBuildingForPlayer(playerid, 1687, 696.070, -502.281, 20.132, 0.250);
RemoveBuildingForPlayer(playerid, 781, 692.695, -498.234, 15.531, 0.250);
RemoveBuildingForPlayer(playerid, 781, 697.812, -498.359, 15.531, 0.250);
RemoveBuildingForPlayer(playerid, 12979, 705.039, -503.468, 15.335, 0.250);*/
//END SET 0;
//Setplayer Color
SetPlayerColor(playerid,COLOR_BLACK);
//Progress bar
BarHungry = CreatePlayerProgressBar(playerid, 219.00, 408.00, 43.50, 2.50, 0x00800000, 100.0, BAR_DIRECTION_RIGHT);
BarSleep = CreatePlayerProgressBar(playerid, 155.00, 408.00, 43.50, 2.50, 0x00800000, 100.0, BAR_DIRECTION_RIGHT);
BarDefecate = CreatePlayerProgressBar(playerid, 281.00, 408.00, 43.50, 2.50, 0x00800000, 100.0, BAR_DIRECTION_RIGHT);
//TEXT
NameVeh[playerid] = TextDrawCreate(478.000000, 411.000000, "_");
TextDrawBackgroundColor(NameVeh[playerid], 255);
TextDrawFont(NameVeh[playerid], 1);
TextDrawLetterSize(NameVeh[playerid], 0.289999, 0.799999);
TextDrawColor(NameVeh[playerid], -1);
TextDrawSetOutline(NameVeh[playerid], 0);
TextDrawSetProportional(NameVeh[playerid], 1);
TextDrawSetShadow(NameVeh[playerid], 1);
TextDrawUseBox(NameVeh[playerid], 1);
TextDrawBoxColor(NameVeh[playerid], -869033616);
TextDrawTextSize(NameVeh[playerid], 546.000000, 0.000000);
ShowVeh[playerid] = TextDrawCreate(493.000000, 399.000000, " ");
TextDrawBackgroundColor(ShowVeh[playerid], 255);
TextDrawFont(ShowVeh[playerid], 1);
TextDrawLetterSize(ShowVeh[playerid], 0.179998, 0.899999);
TextDrawColor(ShowVeh[playerid], -1);
TextDrawSetOutline(ShowVeh[playerid], 0);
TextDrawSetProportional(ShowVeh[playerid], 1);
TextDrawSetShadow(ShowVeh[playerid], 1);
TextDrawUseBox(ShowVeh[playerid], 1);
TextDrawBoxColor(ShowVeh[playerid], 112);
TextDrawTextSize(ShowVeh[playerid], 640.000000, -5.000000);
MoneyText[playerid] = TextDrawCreate(608.000000,95.000000,"-1000");
TextDrawAlignment(MoneyText[playerid],3);
TextDrawBackgroundColor(MoneyText[playerid],0x000000ff);
TextDrawFont(MoneyText[playerid],3);
TextDrawLetterSize(MoneyText[playerid],0.575999,2.230000);
TextDrawColor(MoneyText[playerid],0xff000099);
TextDrawSetOutline(MoneyText[playerid],1);
TextDrawSetShadow(MoneyText[playerid],10);
WMoneyText[playerid] = TextDrawCreate(608.000000,122.000000,"-1000");
TextDrawAlignment(WMoneyText[playerid],3);
TextDrawBackgroundColor(WMoneyText[playerid],0x000000ff);
TextDrawFont(WMoneyText[playerid],3);
TextDrawLetterSize(WMoneyText[playerid],0.575999,2.230000);
TextDrawColor(WMoneyText[playerid],0xff000099);
TextDrawSetOutline(WMoneyText[playerid],1);
TextDrawSetShadow(WMoneyText[playerid],10);
Respectrank[playerid] = TextDrawCreate(156.000000, 375.822235, "_");
TextDrawBackgroundColor(Respectrank[playerid], 51);
TextDrawFont(Respectrank[playerid], 1);
TextDrawLetterSize(Respectrank[playerid], 0.185000, 1.226666);
TextDrawColor(Respectrank[playerid], -2147483393);
TextDrawSetOutline(Respectrank[playerid], 1);
TextDrawSetProportional(Respectrank[playerid], 1);
TextDrawSetShadow(Respectrank[playerid], 0);
TextDrawAlignment(Respectrank[playerid], 1);
BarRespect[playerid] = TextDrawCreate(223.000000, 377.944427, "_");
TextDrawLetterSize(BarRespect[playerid], 0.000000, 0.842594);
TextDrawTextSize(BarRespect[playerid], 150.500000, 0.000000);
TextDrawAlignment(BarRespect[playerid], 1);
TextDrawColor(BarRespect[playerid], 0);
TextDrawUseBox(BarRespect[playerid], true);
TextDrawBoxColor(BarRespect[playerid], 102);
TextDrawSetShadow(BarRespect[playerid], 0);
TextDrawSetOutline(BarRespect[playerid], 0);
TextDrawFont(BarRespect[playerid], 1);
Respect[playerid] = TextDrawCreate(157.000000, 365.866607, "_");
TextDrawBackgroundColor(Respect[playerid], 51);
TextDrawFont(Respect[playerid], 1);
TextDrawLetterSize(Respect[playerid], 0.190000, 0.899999);
TextDrawColor(Respect[playerid], -1);
TextDrawSetOutline(Respect[playerid], 1);
TextDrawSetProportional(Respect[playerid], 1);
TextDrawSetShadow(Respect[playerid], 1);
SleepBar[playerid] = TextDrawCreate(157.000000, 396.000000, "_");
TextDrawBackgroundColor(SleepBar[playerid], 51);
TextDrawFont(SleepBar[playerid], 1);
TextDrawLetterSize(SleepBar[playerid], 0.190000, 0.899999);
TextDrawColor(SleepBar[playerid], -1);
TextDrawSetOutline(SleepBar[playerid], 1);
TextDrawSetProportional(SleepBar[playerid], 1);
TextDrawSetShadow(SleepBar[playerid], 1);
HungryBar[playerid] = TextDrawCreate(220.000000, 396.000000, "_");
TextDrawBackgroundColor(HungryBar[playerid], 51);
TextDrawFont(HungryBar[playerid], 1);
TextDrawLetterSize(HungryBar[playerid], 0.190000, 0.899999);
TextDrawColor(HungryBar[playerid], -1);
TextDrawSetOutline(HungryBar[playerid], 1);
TextDrawSetProportional(HungryBar[playerid], 1);
TextDrawSetShadow(HungryBar[playerid], 1);
for(new i = 0; i < MAX_PLAYERS; i++)
{
DefecateBar[i] = CreatePlayerTextDraw(i, 280.500000, 396.000000, "_");
PlayerTextDrawLetterSize(i, DefecateBar[i], 0.190000, 0.899999);
PlayerTextDrawAlignment(i, DefecateBar[i], 1);
PlayerTextDrawColor(i, DefecateBar[i], -1);
PlayerTextDrawSetShadow(i, DefecateBar[i], 0);
PlayerTextDrawSetOutline(i, DefecateBar[i], 1);
PlayerTextDrawBackgroundColor(i, DefecateBar[i], 51);
PlayerTextDrawFont(i, DefecateBar[i], 1);
PlayerTextDrawSetProportional(i, DefecateBar[i], 1);
}
//END TEXT
//== Dynamic House System
hUp[playerid] = TextDrawCreate(260.000000, 363.000000, " House Upgrade~n~~n~~r~< ~w~Price: ~g~$90000 ~r~>");
TextDrawBackgroundColor(hUp[playerid], 255);
TextDrawFont(hUp[playerid], 2);
TextDrawLetterSize(hUp[playerid], 0.349999, 1.200000);
TextDrawColor(hUp[playerid], -1);
TextDrawSetOutline(hUp[playerid], 1);
TextDrawSetProportional(hUp[playerid], 1);
LockTD0[playerid] = TextDrawCreate(37.000000, 150.000000, "~n~");
TextDrawBackgroundColor(LockTD0[playerid], 255);
TextDrawFont(LockTD0[playerid], 1);
TextDrawLetterSize(LockTD0[playerid], 0.500000, 6.899999);
TextDrawColor(LockTD0[playerid], -1);
TextDrawSetOutline(LockTD0[playerid], 0);
TextDrawSetProportional(LockTD0[playerid], 1);
TextDrawSetShadow(LockTD0[playerid], 1);
TextDrawUseBox(LockTD0[playerid], 1);
TextDrawBoxColor(LockTD0[playerid], -206);
TextDrawTextSize(LockTD0[playerid], 150.000000, 0.000000);
LockTD1[playerid] = TextDrawCreate(47.000000, 162.000000, "~n~");
TextDrawBackgroundColor(LockTD1[playerid], 255);
TextDrawFont(LockTD1[playerid], 1);
TextDrawLetterSize(LockTD1[playerid], 0.500000, 3.399998);
TextDrawColor(LockTD1[playerid], -1);
TextDrawSetOutline(LockTD1[playerid], 0);
TextDrawSetProportional(LockTD1[playerid], 1);
TextDrawSetShadow(LockTD1[playerid], 1);
TextDrawUseBox(LockTD1[playerid], 1);
TextDrawBoxColor(LockTD1[playerid], -1633968897);
TextDrawTextSize(LockTD1[playerid], 79.000000, 10.000000);
LockTD2[playerid] = TextDrawCreate(45.000000, 171.000000, "1234");
TextDrawBackgroundColor(LockTD2[playerid], 255);
TextDrawFont(LockTD2[playerid], 3);
TextDrawLetterSize(LockTD2[playerid], 0.380000, 0.899999);
TextDrawColor(LockTD2[playerid], -1199695105);
TextDrawSetOutline(LockTD2[playerid], 1);
TextDrawSetProportional(LockTD2[playerid], 1);
LockTD3[playerid] = TextDrawCreate(95.000000, 157.000000, "~r~1 ~w~2 3~n~4 5 6~n~7 8 9~n~ 0");
TextDrawBackgroundColor(LockTD3[playerid], 255);
TextDrawFont(LockTD3[playerid], 1);
TextDrawLetterSize(LockTD3[playerid], 0.450000, 1.000000);
TextDrawColor(LockTD3[playerid], -1);
TextDrawSetOutline(LockTD3[playerid], 1);
TextDrawSetProportional(LockTD3[playerid], 1);
LockTD4[playerid] = TextDrawCreate(44.000000, 200.000000, "Enter Close");
TextDrawBackgroundColor(LockTD4[playerid], 255);
TextDrawFont(LockTD4[playerid], 1);
TextDrawLetterSize(LockTD4[playerid], 0.460000, 1.000000);
TextDrawColor(LockTD4[playerid], -1);
TextDrawSetOutline(LockTD4[playerid], 1);
TextDrawSetProportional(LockTD4[playerid], 1);
LockTD5[playerid] = TextDrawCreate(34.000000, 149.000000, "~n~");
TextDrawBackgroundColor(LockTD5[playerid], 255);
TextDrawFont(LockTD5[playerid], 1);
TextDrawLetterSize(LockTD5[playerid], 0.500000, -0.400000);
TextDrawColor(LockTD5[playerid], -1);
TextDrawSetOutline(LockTD5[playerid], 0);
TextDrawSetProportional(LockTD5[playerid], 1);
TextDrawSetShadow(LockTD5[playerid], 1);
TextDrawUseBox(LockTD5[playerid], 1);
TextDrawBoxColor(LockTD5[playerid], -1166599937);
TextDrawTextSize(LockTD5[playerid], 153.000000, 0.000000);
LockTD6[playerid] = TextDrawCreate(34.000000, 217.000000, "~n~");
TextDrawBackgroundColor(LockTD6[playerid], 255);
TextDrawFont(LockTD6[playerid], 1);
TextDrawLetterSize(LockTD6[playerid], 0.500000, -0.400000);
TextDrawColor(LockTD6[playerid], -1);
TextDrawSetOutline(LockTD6[playerid], 0);
TextDrawSetProportional(LockTD6[playerid], 1);
TextDrawSetShadow(LockTD6[playerid], 1);
TextDrawUseBox(LockTD6[playerid], 1);
TextDrawBoxColor(LockTD6[playerid], -1166599937);
TextDrawTextSize(LockTD6[playerid], 153.000000, 0.000000);
//END
DigiHP[playerid] = TextDrawCreate(566.000000, 67.000000, "100");
TextDrawBackgroundColor(DigiHP[playerid], 255);
TextDrawFont(DigiHP[playerid], 1);
TextDrawLetterSize(DigiHP[playerid], 0.340000, 0.799998);
TextDrawColor(DigiHP[playerid], -6291201);
TextDrawSetOutline(DigiHP[playerid], 1);
TextDrawSetProportional(DigiHP[playerid], 1);
DigiAP[playerid] = TextDrawCreate(566.000000, 45.000000, "100");
TextDrawBackgroundColor(DigiAP[playerid], 255);
TextDrawFont(DigiAP[playerid], 1);
TextDrawLetterSize(DigiAP[playerid], 0.340000, 0.799998);
TextDrawColor(DigiAP[playerid], 1778319615);
TextDrawSetOutline(DigiAP[playerid], 1);
TextDrawSetProportional(DigiAP[playerid], 1);
SpreeTextdraw[0] = TextDrawCreate(521.000000, 291.000000, "0");
TextDrawBackgroundColor(SpreeTextdraw[0], 255);
TextDrawFont(SpreeTextdraw[0], 1);
TextDrawLetterSize(SpreeTextdraw[0], 3.319998, 10.300001);
TextDrawColor(SpreeTextdraw[0], -16776961);
TextDrawSetOutline(SpreeTextdraw[0], 1);
TextDrawSetProportional(SpreeTextdraw[0], 1);
SpreeTextdraw[1] = TextDrawCreate(514.000000, 287.000000, "0");
TextDrawBackgroundColor(SpreeTextdraw[1], 255);
TextDrawFont(SpreeTextdraw[1], 1);
TextDrawLetterSize(SpreeTextdraw[1], 1.770000, 5.600000);
TextDrawColor(SpreeTextdraw[1], -16776961);
TextDrawSetOutline(SpreeTextdraw[1], 1);
TextDrawSetProportional(SpreeTextdraw[1], 1);
SpreeTextdraw[2] = TextDrawCreate(571.000000, 329.000000, "0");
TextDrawBackgroundColor(SpreeTextdraw[2], 255);
TextDrawFont(SpreeTextdraw[2], 1);
TextDrawLetterSize(SpreeTextdraw[2], 1.770000, 5.600000);
TextDrawColor(SpreeTextdraw[2], -16776961);
TextDrawSetOutline(SpreeTextdraw[2], 1);
TextDrawSetProportional(SpreeTextdraw[2], 1);
SpreeTextdraw[3] = TextDrawCreate(595.000000, 323.000000, "0");
TextDrawBackgroundColor(SpreeTextdraw[3], 255);
TextDrawFont(SpreeTextdraw[3], 1);
TextDrawLetterSize(SpreeTextdraw[3], 0.960000, 3.300000);
TextDrawColor(SpreeTextdraw[3], -16776961);
TextDrawSetOutline(SpreeTextdraw[3], 1);
TextDrawSetProportional(SpreeTextdraw[3], 1);
SpreeTextdraw[4] = TextDrawCreate(521.000000, 291.000000, "0");
TextDrawBackgroundColor(SpreeTextdraw[4], -16776961);
TextDrawFont(SpreeTextdraw[4], 1);
TextDrawLetterSize(SpreeTextdraw[4], 3.319998, 10.300001);
TextDrawColor(SpreeTextdraw[4], -16776961);
TextDrawSetOutline(SpreeTextdraw[4], 0);
TextDrawSetProportional(SpreeTextdraw[4], 1);
TextDrawSetShadow(SpreeTextdraw[4], 1);
SpreeTextdraw[5] = TextDrawCreate(514.000000, 287.000000, "0");
TextDrawBackgroundColor(SpreeTextdraw[5], -16776961);
TextDrawFont(SpreeTextdraw[5], 1);
TextDrawLetterSize(SpreeTextdraw[5], 1.770000, 5.600000);
TextDrawColor(SpreeTextdraw[5], -16776961);
TextDrawSetOutline(SpreeTextdraw[5], 0);
TextDrawSetProportional(SpreeTextdraw[5], 1);
TextDrawSetShadow(SpreeTextdraw[5], 1);
SpreeTextdraw[6] = TextDrawCreate(571.000000, 329.000000, "0");
TextDrawBackgroundColor(SpreeTextdraw[6], -16776961);
TextDrawFont(SpreeTextdraw[6], 1);
TextDrawLetterSize(SpreeTextdraw[6], 1.770000, 5.600000);
TextDrawColor(SpreeTextdraw[6], -16776961);
TextDrawSetOutline(SpreeTextdraw[6], 0);
TextDrawSetProportional(SpreeTextdraw[6], 1);
TextDrawSetShadow(SpreeTextdraw[6], 1);
SpreeTextdraw[7] = TextDrawCreate(595.000000, 323.000000, "0");
TextDrawBackgroundColor(SpreeTextdraw[7], -16776961);
TextDrawFont(SpreeTextdraw[7], 1);
TextDrawLetterSize(SpreeTextdraw[7], 0.960000, 3.300000);
TextDrawColor(SpreeTextdraw[7], -16776961);
TextDrawSetOutline(SpreeTextdraw[7], 0);
TextDrawSetProportional(SpreeTextdraw[7], 1);
TextDrawSetShadow(SpreeTextdraw[7], 1);
SpreeTextdraw[8] = TextDrawCreate(529.000000, 198.000000, ".");
TextDrawBackgroundColor(SpreeTextdraw[8], -16776961);
TextDrawFont(SpreeTextdraw[8], 1);
TextDrawLetterSize(SpreeTextdraw[8], 5.279999, 20.299997);
TextDrawColor(SpreeTextdraw[8], -16776961);
TextDrawSetOutline(SpreeTextdraw[8], 1);
TextDrawSetProportional(SpreeTextdraw[8], 1);
SpreeTextdraw[9] = TextDrawCreate(515.000000, 240.000000, ".");
TextDrawBackgroundColor(SpreeTextdraw[9], -16776961);
TextDrawFont(SpreeTextdraw[9], 1);
TextDrawLetterSize(SpreeTextdraw[9], 2.870001, 11.299997);
TextDrawColor(SpreeTextdraw[9], -16776961);
TextDrawSetOutline(SpreeTextdraw[9], 1);
TextDrawSetProportional(SpreeTextdraw[9], 1);
SpreeTextdraw[10] = TextDrawCreate(574.000000, 279.000000, ".");
TextDrawBackgroundColor(SpreeTextdraw[10], -16776961);
TextDrawFont(SpreeTextdraw[10], 1);
TextDrawLetterSize(SpreeTextdraw[10], 2.870001, 11.299997);
TextDrawColor(SpreeTextdraw[10], -16776961);
TextDrawSetOutline(SpreeTextdraw[10], 1);
TextDrawSetProportional(SpreeTextdraw[10], 1);
SpreeTextdraw[11] = TextDrawCreate(598.000000, 297.000000, ".");
TextDrawBackgroundColor(SpreeTextdraw[11], -16776961);
TextDrawFont(SpreeTextdraw[11], 1);
TextDrawLetterSize(SpreeTextdraw[11], 1.540002, 5.999996);
TextDrawColor(SpreeTextdraw[11], -16776961);
TextDrawSetOutline(SpreeTextdraw[11], 1);
TextDrawSetProportional(SpreeTextdraw[11], 1);
SpreeTextdraw[12] = TextDrawCreate(528.000000, 325.000000, "~b~[pRo]RoboCop ~w~- ~n~~g~Dominating ~w~with ~y~3 kills");
TextDrawAlignment(SpreeTextdraw[12], 2);
TextDrawBackgroundColor(SpreeTextdraw[12], 255);
TextDrawFont(SpreeTextdraw[12], 2);
TextDrawLetterSize(SpreeTextdraw[12], 0.280000, 1.699999);
TextDrawColor(SpreeTextdraw[12], -1);
TextDrawSetOutline(SpreeTextdraw[12], 1);
TextDrawSetProportional(SpreeTextdraw[12], 1);
MySQLCheckConnection();
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
new sqlaccountstatus = MySQLCheckAccount(plname);
if(sqlaccountstatus != 0)
{
if (MySQLCheckAccountBanned(sqlaccountstatus) == 1)
{
SendClientMessage(playerid, COLOR_SUPERRED, "в»Гґ·ГТє: Account №Хй¶ЩЎбє№... ЎГШіТµФґµиНКНє¶ТБ Administrator !");
PlayerInfo[playerid][pKicked] = 1;
return 1;
}
// Check if the account is locked
gPlayerAccount[playerid] = 1;
PlayerInfo[playerid][pSQLID] = sqlaccountstatus;
}
else
{
gPlayerAccount[playerid] = 0;
}
//Amunation GTA IV
RemoveBuildingForPlayer(playerid, 1885, 310.1250, -166.2109, 998.5547, 0.25);
RemoveBuildingForPlayer(playerid, 1885, 315.2422, -169.8984, 998.5547, 0.25);
RemoveBuildingForPlayer(playerid, 18105, 312.9844, -163.2500, 1000.5547, 0.25);
RemoveBuildingForPlayer(playerid, 1886, 318.8047, -158.9297, 1003.2266, 0.25);
SetTimerEx("CheckForPlayerPos", 100, 1, "i", playerid);
/*SetPVarInt( playerid, "bCon", 1 );
#if defined TELL_ON_CONNECT true
P_DATA[ playerid ][ P_Logged ] = 0;
P_DATA[ playerid ][ P_Deposited ] = 0;
P_DATA[ playerid ][ P_Withdraw ] = 0;
P_DATA[ playerid ][ P_Transfered] = 0;
if ( fexist( ReturnBankingName( playerid ) ) )
SendClientMessage( playerid, 0x20FF20FF, "Banking: {FFFFFF}You have a bank account! Please use {20FF20}/bank{FFFFFF} to login");
else
SendClientMessage( playerid, 0x20FF20FF, "Banking: {FFFFFF}You don't have a bank account! Please use {20FF20}/bank{FFFFFF} to register an account");
#endif*/
return 1;
}
It's quite obvious. These are global variables:
That will make them per-player. I'm pretty sure you're supposed to create player bars (haven't used the include in a while) in the script init. Basically your problem is that you're replacing the index stored in the global variables every time a player connects.