SA-MP Forums Archive
*** Terrible Title Removed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: *** Terrible Title Removed (/showthread.php?tid=387206)



*** Terrible Title Removed - ejul - 23.10.2012

Solved


Re: Can help this - WizBoy - 23.10.2012

From where is this and for what is this?


Re: Can help this - ejul - 23.10.2012

what you mean from where??


Re: Can help this - Danyal - 23.10.2012

Код:
if(strcmp(cmdtext, "/work", true) == 0)
        {
			if(!GetVehicleModel(vehicleid) == 519) return SendClientMessage(playerid, COLOR_RED, "You Are Not In Shamal...");
            if (GetPVarInt(playerid, "Flight") == 1)
            {
                return SendClientMessage(playerid, COLOR_RED, "You are already in a flight!");
                }

                if (GetPVarInt(playerid, "Work") > 0)
                {
                    return SendClientMessage(playerid, COLOR_RED, "You are already in a work!");
                }


                new IslandName[48], szString[128];
                SetPVarInt(playerid, "Work", 1);
                MissionVehicle[playerid] = GetPlayerVehicleID(playerid);
               

                

                     switch(GetClosestAirport(0))
                {

                    case 0: {
                    Island[Las_Venturas][playerid]=SetPlayerFlightCheckpoint(playerid, 1476.5433,1465.9758,10.8281, 10.0);
                    IslandName="Las Venturas"; }

                    case 1: {
                    Island[Los_Santos][playerid] = SetPlayerFlightCheckpoint(playerid, 1869.8599,-2493.2256,13.5547, 10.0);
                    IslandName="Los Santos"; }

                    case 2: {
                    Island[San_Fierro][playerid] = SetPlayerFlightCheckpoint(playerid, -1437.0648,48.4609,14.1484, 10.0);
                    IslandName="San Fierro"; }



        }


                FirstAPName[playerid] = IslandName;
                format(szString, 128, "Go to %s to pick up the passengers!", IslandName);

                WorkTimer[playerid] = SetTimerEx("WorkingMinutes", 60000, true, "i", playerid);
                SendClientMessage(playerid, COLOR_LIGHTGREEN, szString);
try this code hope it will work