All pastes #1038687 Raw Edit

airline system

public lua v1 · immutable
#1038687 ·published 2008-06-04 15:22 UTC
rendered paste body
//##############################################################################################################################################//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//===================================================AIRLINE SYSTEM START!!!====================================================================//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//##############################################################################################################################################	if(strcmp(cmdtext, "/takethedynamic", true) ==0){	SetPlayerSkin(playerid, 61);	SendClientMessage(playerid, 0xFF5604FF, "Sucess logged into Aviation");	SendClientMessage(playerid, 0xFF5604FF, "To view your commands type /aviationcmd");	format(str, 256, "% Has logged in as a pilot type /airline to view your commands.", pname, cmdtext[4]);	SendClientMessageToAll(0xFF5604FFF, str);    GivePlayerWeapon(playerid, 24, 25000);//Desert eagle	takethedynamic[playerid] = 1;	return 1;}	if(strcmp(cmdtext, "/airline", true) ==0)	{	SendClientMessage(playerid, 0x689FF2FF, "You can get a flight from all the airports just type /lv, /ls, /sf, /aa.");    SendClientMessage(playerid, 0x689FF2FF, "If you need a flight fast type /lsasap, /lvasap, /sfasap, /aaasap $50 charges added.");	return 1;}	if(strcmp(cmdtext, "/ls", true)==0){    new pName[MAX_PLAYER_NAME];    GetPlayerName(playerid, pName, sizeof(pName));    format(str, 128, "%s needs a flight from los Santos.", pName);    for(new i; i<MAX_PLAYERS; i++)    {        if(IsPlayerConnected(i))        {            if(takethedynamic[i] == 1)            {                SendClientMessage(i, 0x00B0B0FF, str);            }        }    }    return 1;}	if(strcmp(cmdtext, "/lsasap", true)==0){	GivePlayerMoney(playerid, -50);    new pName[MAX_PLAYER_NAME];    GetPlayerName(playerid, pName, sizeof(pName));    format(str, 128, "%s needs a flight from los santos as soon as possible.", pName);    for(new i; i<MAX_PLAYERS; i++)    {        if(IsPlayerConnected(i))        {            if(takethedynamic[i] == 1)            {                SendClientMessage(i, 0x00B0B0FF, str);            }        }    }    return 1;}	if(strcmp(cmdtext, "/lvasap", true)==0){	GivePlayerMoney(playerid, -50);    new pName[MAX_PLAYER_NAME];    GetPlayerName(playerid, pName, sizeof(pName));    format(str, 128, "%s needs a flight from las Ventures as soon as possible.", pName);    for(new i; i<MAX_PLAYERS; i++)    {        if(IsPlayerConnected(i))        {            if(takethedynamic[i] == 1)            {                SendClientMessage(i, 0x00B0B0FF, str);            }        }    }    return 1;}	if(strcmp(cmdtext, "/sfasap", true)==0){	GivePlayerMoney(playerid, -50);    new pName[MAX_PLAYER_NAME];    GetPlayerName(playerid, pName, sizeof(pName));    format(str, 128, "%s needs a flight from San Fierro as soon as possible.", pName);    for(new i; i<MAX_PLAYERS; i++)    {        if(IsPlayerConnected(i))        {            if(takethedynamic[i] == 1)            {                SendClientMessage(i, 0x00B0B0FF, str);            }        }    }    return 1;}	if(strcmp(cmdtext, "/aaasap", true)==0){	GivePlayerMoney(playerid, -50);    new pName[MAX_PLAYER_NAME];    GetPlayerName(playerid, pName, sizeof(pName));    format(str, 128, "%s needs a flight from the Abandoned Airfield as soon as possible.", pName);    for(new i; i<MAX_PLAYERS; i++)    {        if(IsPlayerConnected(i))        {            if(takethedynamic[i] == 1)            {                SendClientMessage(i, 0x00B0B0FF, str);            }        }    }    return 1;}	if(strcmp(cmdtext, "/sf", true)==0){    new pName[MAX_PLAYER_NAME];    GetPlayerName(playerid, pName, sizeof(pName));    format(str, 128, "%s needs a flight from San Fierro.", pName);    for(new i; i<MAX_PLAYERS; i++)    {        if(IsPlayerConnected(i))        {            if(takethedynamic[i] == 1)            {                SendClientMessage(i, 0x00B0B0FF, str);            }        }    }    return 1;}	if(strcmp(cmdtext, "/lv", true)==0){    new pName[MAX_PLAYER_NAME];    GetPlayerName(playerid, pName, sizeof(pName));    format(str, 128, "%s needs a flight from Las Ventures.", pName);    for(new i; i<MAX_PLAYERS; i++)    {        if(IsPlayerConnected(i))        {            if(takethedynamic[i] == 1)            {                SendClientMessage(i, 0x00B0B0FF, str);            }        }    }    return 1;}	if(strcmp(cmdtext, "/aa", true)==0){    new pName[MAX_PLAYER_NAME];    GetPlayerName(playerid, pName, sizeof(pName));    format(str, 128, "%s needs a flight from the Abandoned Airfield.", pName);    for(new i; i<MAX_PLAYERS; i++)    {        if(IsPlayerConnected(i))        {            if(takethedynamic[i] == 1)            {                SendClientMessage(i, 0x00B0B0FF, str);            }        }    }    return 1;}	if(strcmp(cmdtext, "/aviationcmd", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00B0B0FF, "Use these commands say you want to go from LV to sf type in /LVSF.");	SendClientMessage(playerid, 0x00B0B0FF, "So you get the idea Were your flying from first then to type your destination");	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/lvls", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from Las ventures (LV) to Los Santos (LS).");	format(str, 256, "%s Is flying from Las ventures to Los Santos in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/lvsf", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from Las ventures (LV) to San Fierro (SF).");	format(str, 256, "%s Is flying from Las ventures to San fierro in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/lvaa", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from Las ventures (LV) to the Abandoned airport (AA).");	format(str, 256, "%s Is flying from Las ventures to the Abandoned Airport in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/sflv", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from San Fierro (SF) to Las ventures (LV).");	format(str, 256, "%s Is flying from San fierro to Las ventures in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/sfls", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from San Fierro (SF) to Los Santos (LS).");	format(str, 256, "%s Is flying from San fierro to Los Santos in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/sfaa", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from San Fierro (SF) to the Abandoned Airport (AA).");	format(str, 256, "%s Is flying from San fierro to the Abandoned Airport in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/lslv", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from Los Santos to Las ventures (LV).");	format(str, 256, "%s Is flying from Los Santos to Las ventures in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/lssf", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from Los Santos to San Fierro(SF).");	format(str, 256, "%s Is flying from Los Santos to San fierro in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/lsaa", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from Los Santos to the Abandoned Airport(AA).");	format(str, 256, "%s Is flying from Los Santos to the Abandoned Airport in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/aalv", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from the abandoned airport(AA) to Las ventures (LV).");	format(str, 256, "%s Is flying from the Abandoned Airport to Las ventures in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/aasf", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from the abandoned airport(AA) to San Fierro(SF).");	format(str, 256, "%s Is flying from the Abandoned Airport to San Fierro in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}	if(strcmp(cmdtext, "/aals", true) ==0)	{	if(takethedynamic[playerid] == 1)//checking to make sure there logged in	{	SendClientMessage(playerid, 0x00FF00FF, "You have chosen to go from the abandoned airport(AA) to Los Santos (LS).");	format(str, 256, "%s Is flying from the Abandoned Airport to Los Santos in 3minutes dont miss your flight!!!", pname, cmdtext[4]);	SendClientMessageToAll(0x00FF00FF, str);	}    else    {    SendClientMessage(playerid, 0xD20000FF, "[ERROR]:You must be logged into aviation to use this command");	}	return 1;}//##############################################################################################################################################//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//===================================================AIRLINE SYSTEM END!!!!!====================================================================//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//##############################################################################################################################################