GPS2 SYSTEM

Započeo KuJo123, Avgust 30, 2013, 14:44:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:moja neka skripta
Detaljan opis problema:E sad evo imam jedno pitanje,kako da namestim gps da kad igraci kucaju /gps da im se pojavi ovako nesto npr
VAZNA MESTA
ORGANIZACIJE
POSLOVI
I da da kad igraci stisnu npr vazna mesta da im se pojavi Banka,opstina...
Dio skripte:
Jedino celu da dam
#include <a_samp>
#include <zcmd>
#if defined FILTERSCRIPT


public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Global Position Sistem by FALCONY!");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else
#define DIALOG_GPSSSSS 256

main()
{
print("\n----------------------------------");
print("Global Position Sistem by FALCONY!");
print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
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("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}

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

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

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

public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(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[])
{
if(dialogid == DIALOG_GPSSSSS) //Provjerava id dialoga
{
    if(response)
    {
        if(listitem == 0)
{
        SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju BANKA");
        SetPlayerCheckpoint(playerid, 1462.8000488281, -1027.3000488281, 23.60000038147, 3.0);
}
        if(listitem == 1)
{
        SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Opstina");
        SetPlayerCheckpoint(playerid, 1482.0999755859, -1740.5999755859, 13.39999961853, 3.0);
}
        if(listitem == 2)
{
    SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Pd stanica");
        SetPlayerCheckpoint(playerid, 1534.5999755859, -1674.8000488281, 13.199999809265, 3.0);
}
        if(listitem == 3)
{
        SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Auto Skola ");
        SetPlayerCheckpoint(playerid, 2055.1999511719, -1924.8000488281, 13.39999961853, 3.0);
}
        if(listitem == 4)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju AutoPijaca");
        SetPlayerCheckpoint(playerid, 1637.4000244141, -1148.4000244141, 23.700000762939, 3.0);
}
        if(listitem == 5)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju LSPD");
        SetPlayerCheckpoint(playerid, 1534.5999755859, -1674.8000488281, 13.199999809265, 3.0);
}
            if(listitem == 6)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju FBI");
        SetPlayerCheckpoint(playerid, 1520.4000244141, -1447.5999755859, 13.300000190735, 3.0);
}
            if(listitem == 7)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Bolnica");
        SetPlayerCheckpoint(playerid, 1184.3000488281, -1323.3000488281, 13.39999961853, 3.0);
}
            if(listitem == 8)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju PS");
        SetPlayerCheckpoint(playerid, 1021.4000244141, -947.20001220703, 42.099998474121, 3.0);
}
    if(listitem == 9)
{
        SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Novinari");
        SetPlayerCheckpoint(playerid, 1785.4000244141, -1288.5999755859, 13.39999961853, 3.0);
}
            if(listitem == 10)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Taxi");
        SetPlayerCheckpoint(playerid, 1269.8000488281, -1843.4000244141, 13.199999809265, 3.0);
}
            if(listitem == 11)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju The Escobar Cartel");
        SetPlayerCheckpoint(playerid, 1023.5999755859, -372.60000610352, 73.300003051758, 3.0);
}
    if(listitem == 12)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju GHS");
        SetPlayerCheckpoint(playerid, 2818.3000488281, -1584.1999511719, 10.699999809265, 3.0);
}
            if(listitem == 13)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Vagos");
        SetPlayerCheckpoint(playerid, 2598.3000488281, -1055.8000488281, 69.400001525879, 3.0);
}
            if(listitem == 14)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju LCN");
        SetPlayerCheckpoint(playerid, 1296.4000244141, -2055.8999023438, 58.200000762939, 3.0);
}
    if(listitem == 15)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju GSF");
        SetPlayerCheckpoint(playerid, 2459.6999511719, -1659, 13.10000038147, 3.0);
}
            if(listitem == 16)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Yakuza");
        SetPlayerCheckpoint(playerid, 2818.3000488281, -1584.1999511719, 10.699999809265, 3.0);
}
    if(listitem == 17)
{
SendClientMessage(playerid,0xFFFFFFC8,"GPS namesten na lokaciju Yakuza");
        DisablePlayerCheckpoint(playerid);
        }


//====================================================================//
    }
}
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
//_____Komanda_____//
CMD:gps(playerid,params[])
{
ShowPlayerDialog(playerid, DIALOG_GPSSSSS, DIALOG_STYLE_LIST, "{FFFFFF}GPS Sistem:By Falcony", "{FFFFFF}Banka\nOpstina\nPD Stanica\nAuto Skola\nAuto Pijaca\nLSPD\nFBI\nBolnica\nPS\nNovinari\nTAXI\nThe Escobar Cartel\nGHS\nVagos\nLCN\nGSF\nYakuza\nUgasi GPS!", "Odaberi", "");
SendClientMessage(playerid, -1,"{99CCFF}GPS|{FFFF00}Upalili ste{99CCFF}GPS!");
return 1;
}

Neke slike da bi igracima bilo lakse (nije obavezno)://