PLEASE HELP
#1

#include <a_samp>
#include <sscanf2>
#include <YSI/y_ini>
#include <zcmd>
#include <streamer>

#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x3A47DEFF
#define COLOR_TAN 0xBDB76BAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_BLACK 0x00000000
#define COLOR_DARKGREY 0x696969FF

#define checkpointid

forward UnfreezePlayer(playerid);

#define PATH "/Nalozi/%s.ini"
#pragma tabsize 0

enum pInfo
{
pPass,
pCash,
pAdmin,
pScore,
pBankmoney,
pBanned,
pVip,
pGameMaster
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Score",PlayerInfo[playerid][pScore]);
INI_Int("Bankmoney",PlayerInfo[playerid][pBankmoney]);
INI_Int("Banned",PlayerInfo[playerid][pBanned]);
INI_Int("Vip",PlayerInfo[playerid][pVip]);
INI_Int("GameMaster",PlayerInfo[playerid][pGameMaster]);
return 1;
}
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string,sizeof(string),PATH,playername);
return string;
}
stock udb_hash(buf[])
{
new length=strlen(buf);
new s1 = 1;
new s2 = 0;
new n;
for (n=0; n<length; n++)
{
s1 = (s1 + buf[n]) % 65521;
s2 = (s2 + s1) % 65521;
}
return (s2 << 16) + s1;
}
main()
{
print("Admin script by");
print(" Script by Filipo_Lazic");
print("----------------------------------\n");
}



//======================Bus misija===========================//
new Zaposlen[MAX_PLAYERS];
new Start;
new PrvaStanica;
new Kraj;

public OnGameModeInit()
{
//==============================OBJEKTI============= ======================//
CreateObject(11235, 1350.96460, -653.96155, 113.00446, 0.00000, 0.00000, 0.00000);
CreateObject(4289, 801.65625, -2162.19531, -19.30469, 0.00000, 0.00000, 0.00000);
CreateObject(11235, 230.40495, -1714.02649, 8.32091, 0.00000, 0.00000, 0.00000);
CreateObject(3401, 225.67450, -1710.39172, 6.34793, 0.00000, 0.00000, 0.00000);
CreateObject(19078, -1690.24683, 8.75130, 8.75130, 0.00000, 0.00000, 0.00000);
CreateObject(19078, 219.75610, -1690.51013, 9.81130, 0.00000, 0.00000, 0.00000);
//========================Vehicles================== ======================//
AddStaticVehicleEx(482,2484.3000000,-1675.9000000,13.6000000,0.0000000,164,167,15); //Burrito
AddStaticVehicleEx(482,2487.3000000,-1675.8000000,13.6000000,0.0000000,164,167,15); //Burrito
AddStaticVehicleEx(482,2490.3999000,-1676.1000000,13.6000000,0.0000000,77,98,15); //Burrito
AddStaticVehicleEx(482,2493.1001000,-1676.0000000,13.6000000,0.0000000,152,149,15); //Burrito
AddStaticVehicleEx(482,2496.3000000,-1676.1000000,13.6000000,0.0000000,102,28,15); //Burrito
AddStaticVehicleEx(482,2499.5000000,-1676.0000000,13.6000000,0.0000000,111,103,15); //Burrito
AddStaticVehicleEx(560,2500.6001000,-1662.0000000,13.2000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2497.5000000,-1662.1000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2494.1001000,-1662.2000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2490.6001000,-1662.4000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2487.3000000,-1662.5000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2484.6001000,-1662.6000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2481.7000000,-1662.7000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2478.8000000,-1662.7000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(522,2483.8000000,-1668.3000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2485.2000000,-1667.9000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2487.1001000,-1668.6000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2489.3000000,-1669.0000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2492.3000000,-1669.0000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2494.0000000,-1669.0000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2496.3000000,-1668.8000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2498.5000000,-1669.0000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2501.2000000,-1668.4000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2490.8000000,-1669.3000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2487.1001000,-1688.0000000,13.1000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(431,1246.2000000,-2015.3000000,60.1000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1250.8000000,-2015.4000000,59.9000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1255.5000000,-2015.4000000,59.8000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1260.2000000,-2015.3000000,59.7000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1265.0000000,-2015.4000000,59.5000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1269.9000000,-2015.4000000,59.4000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1275.0000000,-2015.2002000,59.2000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1245.9000000,-2039.9000000,60.1000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1249.9000000,-2039.9000000,60.0000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1253.9000000,-2040.1000000,59.8000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1257.5000000,-2039.7000000,59.7000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1270.7000000,-2040.2000000,59.4000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1274.5000000,-2040.1000000,59.3000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1277.5996000,-2040.2998000,59.3000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(431,1252.2998000,-1972.5996100,55.1000000,0.0000000,125,98,15); //Bus
AddStaticVehicleEx(463,-2339.8000000,-1595.8000000,483.2999900,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2337.5000000,-1596.0000000,483.2999900,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2335.3999000,-1596.8000000,483.2999900,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2333.3999000,-1597.4000000,483.2999900,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2331.7000000,-1598.1000000,483.3999900,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2329.8999000,-1598.6000000,483.3999900,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2327.8999000,-1599.1000000,483.3999900,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2326.0000000,-1599.7000000,483.3999900,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2324.2000000,-1600.4000000,483.3999900,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2322.8000000,-1600.8000000,483.5000000,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2321.3000000,-1601.4000000,483.5000000,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2320.1001000,-1602.0000000,483.5000000,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2318.5000000,-1602.5000000,483.5000000,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2317.0000000,-1603.2000000,483.5000000,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2315.1001000,-1604.0000000,483.5000000,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,-2336.2000000,-1665.3000000,483.2000100,0.0000000,76,117,15); //Freeway
AddStaticVehicleEx(492,-2346.6001000,-1632.6000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2343.1001000,-1632.6000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2339.3999000,-1632.6000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2336.0000000,-1632.7000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2333.2000000,-1632.8000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2330.1001000,-1632.7000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2327.6001000,-1632.3000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2324.8999000,-1632.3000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2322.6001000,-1632.5000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2319.2002000,-1632.9004000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(492,-2316.5000000,-1632.0000000,483.6000100,0.0000000,111,130,15); //Greenwood
AddStaticVehicleEx(482,2484.0000000,-1676.1000000,13.6000000,0.0000000,164,167,15); //Burrito
AddStaticVehicleEx(482,2487.3000000,-1676.1000000,13.6000000,0.0000000,164,167,15); //Burrito
AddStaticVehicleEx(482,2490.3999000,-1676.1000000,13.6000000,0.0000000,77,98,15); //Burrito
AddStaticVehicleEx(482,2493.2000000,-1676.1000000,13.6000000,0.0000000,152,149,15); //Burrito
AddStaticVehicleEx(482,2496.3000000,-1676.1000000,13.6000000,0.0000000,102,28,15); //Burrito
AddStaticVehicleEx(482,2499.1001000,-1676.0000000,13.6000000,0.0000000,111,103,15); //Burrito
AddStaticVehicleEx(560,2500.6001000,-1662.0000000,13.2000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2497.5000000,-1662.1000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2494.1001000,-1662.2000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2490.6001000,-1662.4000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2487.3000000,-1662.5000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2484.6001000,-1662.6000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2481.7000000,-1662.7000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(560,2478.8000000,-1662.7000000,13.1000000,0.0000000,111,103,15); //Sultan
AddStaticVehicleEx(522,2483.8000000,-1668.3000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2485.2000000,-1667.9000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2487.1001000,-1668.6000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2489.3000000,-1669.0000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2492.3000000,-1669.0000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2494.0000000,-1669.0000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2496.3000000,-1668.8000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2498.5000000,-1669.0000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2501.2000000,-1668.4000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2490.8000000,-1669.3000000,13.0000000,0.0000000,48,79,15); //NRG-500
AddStaticVehicleEx(522,2487.1001000,-1688.0000000,13.1000000,0.0000000,48,79,15); //NRG-500
//======================================OBJEKTI===== ======================//
CreateObject(13591,2483.2000000,-1653.1000000,12.9000000,0.0000000,0.0000000,0.0000 000); //object(kickcar2 (1)
CreateObject(8324,2459.5000000,-1666.2998000,14.9000000,0.0000000,0.0000000,0.0000 000); //object(vgsbboardsigns10) (1)
CreateObject(8324,2460.1006000,-1653.2998000,14.9000000,0.0000000,0.0000000,0.0000 000); //object(vgsbboardsigns10) (2)
CreateObject(8324,2451.0000000,-1729.4000000,68.0000000,0.0000000,0.0000000,0.0000 000); //object(vgsbboardsigns10) (3)
CreateObject(17613,2521.2000000,-1570.8000000,24.0000000,0.0000000,0.0000000,0.0000 000); //object(lae2_roads89) (1)
CreateObject(9131,-2247.8999000,-1493.7000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (1)
CreateObject(9131,-2247.8000000,-1494.1000000,379.8999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (2)
CreateObject(9131,-2247.7000000,-1494.5000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (3)
CreateObject(9131,-2245.8999000,-1499.9000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (4)
CreateObject(9131,-2245.8000000,-1500.3000000,379.8999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (5)
CreateObject(9131,-2244.1001000,-1502.3000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (6)
CreateObject(9131,-2244.1001000,-1502.3000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (7)
CreateObject(9131,-2244.1001000,-1503.3000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (
CreateObject(9131,-2244.0996000,-1503.2998000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (9)
CreateObject(9131,-2244.2000000,-1504.0000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (10)
CreateObject(9131,-2244.0000000,-1504.7000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (11)
CreateObject(9131,-2243.8999000,-1505.1000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (12)
CreateObject(9131,-2243.6001000,-1505.8000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (13)
CreateObject(9131,-2243.3000000,-1506.5000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (14)
CreateObject(9131,-2243.0000000,-1507.2000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (15)
CreateObject(9131,-2242.8000000,-1507.7000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (16)
CreateObject(9131,-2242.6001000,-1508.1000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (17)
CreateObject(9131,-2242.5000000,-1508.6000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (1
CreateObject(9131,-2242.3000000,-1509.2000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (19)
CreateObject(9131,-2242.2000000,-1509.7000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (20)
CreateObject(9131,-2242.0000000,-1510.2000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (21)
CreateObject(9131,-2241.8999000,-1510.7000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (22)
CreateObject(9131,-2241.7000000,-1511.1000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (23)
CreateObject(9131,-2241.6001000,-1511.4000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (24)
CreateObject(9131,-2241.5000000,-1511.8000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (25)
CreateObject(9131,-2241.3999000,-1512.4000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (26)
CreateObject(9131,-2241.2000000,-1512.9000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (27)
CreateObject(9131,-2241.1001000,-1513.5000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (2
CreateObject(9131,-2241.0000000,-1513.9000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (29)
CreateObject(9131,-2240.8000000,-1514.3000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (30)
CreateObject(9131,-2240.8000000,-1514.7000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (31)
CreateObject(9131,-2240.7000000,-1515.3000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (32)
CreateObject(9131,-2240.6001000,-1515.7000000,379.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (33)
CreateObject(9131,-2240.6001000,-1516.0000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (34)
CreateObject(9131,-2254.8999000,-1495.4000000,379.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (35)
CreateObject(9131,-2254.5000000,-1497.0000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (36)
CreateObject(9131,-2254.3000000,-1497.7000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (37)
CreateObject(9131,-2254.0000000,-1498.7000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (3
CreateObject(9131,-2253.6001000,-1499.9000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (39)
CreateObject(9131,-2253.2000000,-1500.9000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (40)
CreateObject(9131,-2253.0000000,-1501.3000000,379.8999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (41)
CreateObject(9131,-2252.8999000,-1502.0000000,379.7000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (42)
CreateObject(9131,-2252.8000000,-1502.6000000,379.7000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (43)
CreateObject(9131,-2252.5000000,-1503.4000000,379.7000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (44)
CreateObject(9131,-2252.3000000,-1503.9000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (45)
CreateObject(9131,-2252.1001000,-1504.6000000,379.7000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (46)
CreateObject(9131,-2251.8999000,-1505.3000000,379.7000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (47)
CreateObject(9131,-2251.8000000,-1505.8000000,379.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (4
CreateObject(9131,-2251.6001000,-1506.5000000,379.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (49)
CreateObject(9131,-2251.3999000,-1507.2000000,379.8999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (50)
CreateObject(9131,-2251.3000000,-1507.7000000,379.8999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (51)
CreateObject(9131,-2251.1001000,-1508.5000000,380.0000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (52)
CreateObject(9131,-2250.8000000,-1509.2000000,379.8999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (53)
CreateObject(9131,-2250.6001000,-1510.0000000,380.0000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (54)
CreateObject(9131,-2250.5000000,-1510.4000000,380.1000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (55)
CreateObject(9131,-2250.3000000,-1511.1000000,380.1000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (56)
CreateObject(9131,-2250.1001000,-1511.7000000,380.0000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (57)
CreateObject(9131,-2249.8000000,-1512.5000000,380.0000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (5
CreateObject(9131,-2249.6001000,-1513.1000000,380.1000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (59)
CreateObject(9131,-2249.3999000,-1513.8000000,380.2000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (60)
CreateObject(9131,-2249.0000000,-1514.5000000,380.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (61)
CreateObject(9131,-2248.7000000,-1515.3000000,380.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (62)
CreateObject(9131,-2248.5000000,-1515.9000000,380.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (63)
CreateObject(9131,-2248.2000000,-1516.6000000,381.0000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (64)
CreateObject(9131,-2248.0000000,-1517.2000000,380.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (65)
CreateObject(9131,-2247.8000000,-1517.7000000,380.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (66)
CreateObject(9131,-2247.8000000,-1518.2000000,381.0000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (67)
CreateObject(9131,-2247.8000000,-1518.6000000,381.3999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (6
CreateObject(9131,-2247.7000000,-1519.1000000,381.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (69)
CreateObject(9131,-2245.6001000,-1500.5000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (70)
CreateObject(9131,-2245.3999000,-1501.0000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (71)
CreateObject(9131,-2244.3999000,-1504.0000000,381.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (72)
CreateObject(9131,-2244.3000000,-1504.6000000,381.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (73)
CreateObject(9131,-2244.1001000,-1505.0000000,381.8999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (74)
CreateObject(9131,-2244.0000000,-1505.4000000,382.0000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (75)
CreateObject(9131,-2243.8000000,-1505.6000000,381.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (76)
CreateObject(9131,-2243.5000000,-1506.4000000,381.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (77)
CreateObject(9131,-2243.3999000,-1507.0000000,381.7000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (7
CreateObject(9131,-2243.1001000,-1507.8000000,381.7000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (79)
CreateObject(9131,-2243.0000000,-1506.3000000,381.7999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (80)
CreateObject(9131,-2246.1001000,-1499.3000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (81)
CreateObject(9131,-2246.3000000,-1498.6000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (82)
CreateObject(9131,-2246.6001000,-1497.9000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (83)
CreateObject(9131,-2246.6001000,-1497.4000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (84)
CreateObject(9131,-2247.0000000,-1497.1000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (85)
CreateObject(9131,-2247.3999000,-1496.8000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (86)
CreateObject(9131,-2247.0000000,-1496.1000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (87)
CreateObject(9131,-2247.2000000,-1495.5000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (8
CreateObject(9131,-2247.6001000,-1495.3000000,379.6000100,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (89)
CreateObject(9131,-2248.0000000,-1495.0000000,379.8999900,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (90)
CreateObject(9131,-2244.5000000,-1503.4000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (91)
CreateObject(9131,-2244.7000000,-1502.7000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (92)
CreateObject(9131,-2245.3000000,-1501.9000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (93)
CreateObject(9131,-2245.8000000,-1501.3000000,379.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (94)
CreateObject(9131,-2159.3999000,-1509.9000000,342.5000000,0.0000000,0.0000000,0.000 0000); //object(shbbyhswall13_lvs) (95)
CreateObject(13591,2483.2000000,-1653.1000000,12.9000000,0.0000000,0.0000000,0.0000 000); //object(kickcar2 (1)
CreateObject(8324,2459.5000000,-1666.3000000,14.9000000,0.0000000,0.0000000,0.0000 000); //object(vgsbboardsigns10) (1)
CreateObject(8324,2460.1001000,-1653.3000000,14.9000000,0.0000000,0.0000000,0.0000 000); //object(vgsbboardsigns10) (2)
CreateObject(8324,2451.0000000,-1729.4000000,68.0000000,0.0000000,0.0000000,0.0000 000); //object(vgsbboardsigns10) (3)
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid),"LoadUser_%s",.bE xtra = true,.extra = playerid);
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYL E_INPUT,"Login:","Please enter your password to login in your account","Login","Quit");
}
else
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_S TYLE_INPUT,"Register:","Please register new account,type your password","Register","Quit");
}
//======================Bus misija===========================//
Start = CreateDynamicRaceCP(0,1369.7252,-2048.1987,56.0047,1303.5747,-1958.2917,29.1829,3.0);
PrvaStanica = CreateDynamicRaceCP(0,1303.5747,-1958.2917,29.1829,1720.0613,-1816.5732,13.4585,3.0);
Kraj = CreateDynamicRaceCP(0,1720.0613,-1816.5732,13.4585,0,0,0,3.0);
TogglePlayerDynamicRaceCP(playerid,Start,0);
TogglePlayerDynamicRaceCP(playerid,PrvaStanica,0);
TogglePlayerDynamicRaceCP(playerid,Kraj,0);
//================================================== ========//
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)) ;
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Score",GetPlayerScore(playerid) );
INI_WriteInt(File,"Bankmoney",PlayerInfo[playerid][pBankmoney]);
INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
INI_WriteInt(File,"Vip",PlayerInfo[playerid][pVip]);
INI_WriteInt(File,"GameMaster",PlayerInfo[playerid][pGameMaster]);
INI_Close(File);
return 1;
}

public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid, 221);
GivePlayerMoney(playerid, 500);
SendClientMessage(playerid,COLOR_GREEN,"Admin Filipo_Lazic uvek ti daje ovoliko para kada udjes na server");
SetPlayerPos(playerid, 235.28751, -1703.59937, 10.18320);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid, 0);
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid,COLOR_PINK,"[TestFront]: Umro si,tvoj bolnicki racun iznosi 500$ ");


return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
if(Zaposlen[playerid]
{
Zaposlen[playerid] = 0;
SendClientMessage(playerid,COLOR_GREEN,"[TestFront]: Nesmes izaci iz autobusa,ostao si bez posla!");
GivePlayerMoney(playerid,-150);
ToggleAllDynamicRaceCPs(playerid,0);
}
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/busposao", cmdtext, true, 10) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(Zaposlen[playerid] = 0 && GetVehicleModel(vehicleid) == 437 ||GetVehicleModel(vehicleid) == 431)
{
Zaposlen[playerid] = 1;
new name[MAX_PLAYER_NAME], string[48]
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"%s je poceo bus misiju", name);
SendClientMessageToAll(playerid,string);
TogglePlayerDynamicRaceCP(playerid,Start,1);
}
else if(Zaposlen[playerid] == 1)
{
SendClientMessage(playerid,COLOR_ORANGE,"[TestFront]:Vec si se zaposlio!");
}
else
{
SendClientMessage(playerid,COLOR_ORANGE,"[TestFront]:Nisi u autobusu!");
}

return 1;
}
return 0;
}

public OnPlayerEnterDynamicRaceCP(playerid,checkpointid)
{
if(checkpointid == Start)
{
TogglePlayerDynamicRaceCP(playerid,Start,0);
TogglePlayerDynamicRaceCP(playerid,PrvaStanica,1);
TogglePlayerControllable(playerid,0);
SetTimerEx("UnfreezePlayer",3000,false,"d",playeri d);
GameTextForPlayer(playerid,"~b~LOADING....",1500,6 );
}
if(checkpointid == PrvaStanica)
{
TogglePlayerDynamicRaceCP(playerid,PrvaStanica,0);
TogglePlayerDynamicRaceCP(playerid,Kraj,1);
TogglePlayerControllable(playerid,0);
SetTimerEx("UnfreezePlayer",3000,false,"d",playeri d);
GameTextForPlayer(playerid,"~b~LOADING....",1500,6 );
}
if(checkpointid == Kraj)
{
TogglePlayerAllDynamicRaceCPs(playerid,0);
Zaposlen[playerid] = 0;
SendClientMessage(playerid,COLOR_GREEN,"[TestFront]:Uspesno si zavrsio voznju zaradio si 2000$!");
GivePlayerMoney(playerid, 2000);
TogglePlayerControllable(playerid,0);
SetTimerEx("UnfreezePlayer",3000,false,"d",playeri d);
GameTextForPlayer(playerid,"~b~UNLOADING....",1500 ,6);
}
return 1;
}
//====================Admin commands====================//

CMD:heal(playerid,params[])
{
new name[MAX_PLAYER_NAME],name1[MAX_PLAYER_NAME],id,msg1[128],msg2[128];
if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"[TestFront] Kucaj /heal [name/id] !");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"[ERROR] Pogresan id,klikni tab pa vidi!");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"[ERROR]: Nisi admin!");
SetPlayerHealth(id,100.0);
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(id,name1,sizeof(name1));
format(msg1,sizeof(msg1),"[INFO]: Hilovan si %s(%d)!",name1,id);
format(msg2,sizeof(msg2),"[INFO]: Hilovan si od strane admina %s(%d)!",name,playerid);
SendClientMessage(playerid,COLOR_GREEN,msg1);
SendClientMessage(id,COLOR_GREEN,msg2);
return 1;
}
CMD:ak47(playerid,params[])
{
GivePlayerWeapon(playerid, 30, 2000);
SendClientMessage(playerid,COLOR_GREEN,"[TestFront] Dobio si AK-47");
return 1;
}



































public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
if(Zaposlen[playerid]
{
Zaposlen[playerid] = 0;
SendClientMessage(playerid,COLOR_GREEN,"[TestFront]: Nesmes izaci iz autobusa,ostao si bez posla!");
GivePlayerMoney(playerid,-150);
ToggleAllDynamicRaceCPs(playerid,0);
}
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_REGISTER:
{
if(!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_S TYLE_INPUT,"Register:","Password invalid,type new password","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Score",0);
INI_WriteInt(File,"Bankmoney,",0);
INI_WriteInt(File,"Banned",0);
INI_Close(File);
}
}
case DIALOG_LOGIN:
{
if(!response) return Kick(playerid);
if(response)
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid),"LoadUser_%s",.bE xtra = true,.extra = playerid);
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);
SendClientMessage(playerid,-1,"You`ve succsessfully logged in your account!");
}
else
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYL E_INPUT,"Login:","Password incorrect type again!","Login","Quit");
}

}


}

}





return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

public UnfreezePlayer(playerid)
{
if(IsPlayerConnected(playerid))
{
TogglePlayerControllable(playerid,1);
}

return 1;
}
Reply
#2

Nice heres your code. But what is your problem exactly ?
Reply
#3

Oh god.. atleast put it in a or in a pastebin..

Also what is the issue...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)