[FilterScript] Some Teleports
#1

Hi, i am Skippy and this is my Teleport Script :3
pawn Код:
if (strcmp("/teles", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid,0xAA3333AA," ");
    SendClientMessage(playerid,0xD8D8D8FF," ");
    new Float:x,Float:y,Float:z;
    PlayerPlaySound(playerid,1133,x,y,z);
    SendClientMessage(playerid,COLOR_RED,"====================Server Name=========by Skippy=========");
    SendClientMessage(playerid,COLOR_GREEN,"Citys:");
    SendClientMessage(playerid,COLOR_WHITE," /ls - /lv - /sf");
    SendClientMessage(playerid,COLOR_GREEN,"Aeros:");
    SendClientMessage(playerid,COLOR_WHITE," /aerols - /aerolv - /aerosf");
    SendClientMessage(playerid,COLOR_GREEN,"Drifts:");
    SendClientMessage(playerid,COLOR_WHITE," /drift1 - /drift2 - /drift3 - /drift4 - /drift5");
    SendClientMessage(playerid,COLOR_WHITE," /drift6 - /drift7 - /drift8 - /drift9 - /drift10");
    SendClientMessage(playerid,COLOR_WHITE," /drift11 - /drift12 - /drift13 - /drift14 - /drift15");
    SendClientMessage(playerid,COLOR_WHITE," /drift16 - /drift17 - /drift18 - /drift19 - /driftlampy");
    SendClientMessage(playerid,COLOR_RED,"====================Server Name=========by Skippy=========");
    return 1;
}
if (strcmp("/lv", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,2022.9275,1343.1251,10.8203);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Las Venturas");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),2022.9275,1343.1251,10.8203);
    }
return 1;
}
if (strcmp("/ls", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,1222.1864,-2036.9366,65.2266);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Los Santos");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),1222.1864,-2036.9366,65.2266);
    }
return 1;
}
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-1976.4996,288.0761,35.1719);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a San Fierro");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1976.4996,288.0761,35.1719);
    }
return 1;
}
if (strcmp("/aerols", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,1962.0167,-2184.1187,13.5469);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Aeropuerto Los Santos");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),1962.0167,-2184.1187,13.5469);
    }
return 1;
}
if (strcmp("/aerolv", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,1711.3654,1606.0040,10.0079);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Aeropuerto Las Venturas");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),1711.3654,1606.0040,10.0079);
    }
return 1;
}
if (strcmp("/aerosf", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-1549.6300,-434.7469,6.0000);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Aeropuerto San Fierro");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1549.6300,-434.7469,6.0000);
    }
return 1;
}
if (strcmp("/drift1", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-302.8463,1533.9108,75.3594);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 1");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-302.8463,1533.9108,75.3594);
    }
return 1;
}
if (strcmp("/drift2", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,505.6933,698.4864,3.6855);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 2");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),505.6933,698.4864,3.6855);
    }
return 1;
}
if (strcmp("/drift3", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-1038.2395,-1361.5941,130.2312);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 3");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1038.2395,-1361.5941,130.2312);
    }
return 1;
}
if (strcmp("/drift4", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,1077.8860,2293.5271,10.6771);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 4");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),1077.8860,2293.5271,10.6771);
    }
return 1;
}
if (strcmp("/drift5", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-777.8851,2729.9319,45.3491);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 5");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-777.8851,2729.9319,45.3491);
    }
return 1;
}
if (strcmp("/drift6", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-2130.2683,918.4574,79.8516);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 6");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-2130.2683,918.4574,79.8516);
    }
return 1;
}
if (strcmp("/drift7", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-2565.1167,583.9200,14.4545);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 7");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-2565.1167,583.9200,14.4545);
    }
return 1;
}
if (strcmp("/drift8", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-2406.5911,-597.4348,132.6484);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 8");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-2406.5911,-597.4348,132.6484);
    }
return 1;
}
if (strcmp("/drift9", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-1987.6683,-711.4275,32.0234);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 9");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1987.6683,-711.4275,32.0234);
    }
return 1;
}
if (strcmp("/drift10", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-1909.6063,-1358.9093,40.3652);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 10");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1909.6063,-1358.9093,40.3652);
    }
return 1;
}
if (strcmp("/drift11", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,1248.8058,-2055.1365,59.7430);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 12");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),1248.8058,-2055.1365,59.7430);
    }
return 1;
}
if (strcmp("/drift13", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,1313.7987,-706.6904,92.6943);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 13");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),1313.7987,-706.6904,92.6943);
    }
return 1;
}
if (strcmp("/drift14", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,1712.4795,1605.7986,10.0156);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 14");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),1712.4795,1605.7986,10.0156);
    }
return 1;
}
if (strcmp("/drift15", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,2234.2544,1963.8501,31.7797);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 15");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),2234.2544,1963.8501,31.7797);
    }
return 1;
}
if (strcmp("/drift16", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,2327.1516,1396.7206,42.8203);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 16");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),2327.1516,1396.7206,42.8203);
    }
return 1;
}
if (strcmp("/drift17", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,2527.4802,2091.7612,10.6719);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 17");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),2527.4802,2091.7612,10.6719);
    }
return 1;
}
if (strcmp("/drift18", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,1716.4042,488.8535,29.8631);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 18");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),1716.4042,488.8535,29.8631);
    }
return 1;
}
if (strcmp("/drift19", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-1298.1705,-133.8195,14.1484);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift 19");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1298.1705,-133.8195,14.1484);
    }
return 1;
}
if (strcmp("/driftlampy", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-1538.8864,728.3900,7.0391);
    SendClientMessage(playerid,COLOR_GREEN,"[!]Bienvenido a Drift Lampy");
    }else
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1538.8864,728.3900,7.0391);
    }
return 1;
}
The welcome message is in spanish.
"[!]Bienvenido a Drift [1-19,Lampy]"
"[!]Welcom to Drift [1-19,Lampy]"
Change it
Reply
#2

(315 -- 14) : error 025: function heading differs from prototype
(315 -- 15) : error 025: function heading differs from prototype
(315 -- 16) : error 025: function heading differs from prototype
(315 -- 17) : error 010: invalid function or declaration
(315 -- 19) : error 010: invalid function or declaration
(315 -- 21) : error 010: invalid function or declaration
(315 -- 24) : error 025: function heading differs from prototype
(315 -- 25) : error 054: unmatched closing brace ("}")
(315 -- 25) : error 010: invalid function or declaration
(27) : error 010: invalid function or declaration
(27 -- 29) : error 010: invalid function or declaration
(27 -- 31) : error 010: invalid function or (27 -- 31) : fatal error 107: too many error messages on one line
Reply
#3

Quote:
Originally Posted by Ryan Sweden
Посмотреть сообщение
(315 -- 14) : error 025: function heading differs from prototype
(315 -- 15) : error 025: function heading differs from prototype
(315 -- 16) : error 025: function heading differs from prototype
(315 -- 17) : error 010: invalid function or declaration
(315 -- 19) : error 010: invalid function or declaration
(315 -- 21) : error 010: invalid function or declaration
(315 -- 24) : error 025: function heading differs from prototype
(315 -- 25) : error 054: unmatched closing brace ("}")
(315 -- 25) : error 010: invalid function or declaration
(27) : error 010: invalid function or declaration
(27 -- 29) : error 010: invalid function or declaration
(27 -- 31) : error 010: invalid function or (27 -- 31) : fatal error 107: too many error messages on one line
You have to paste the code inside the OnPlayerCommandtext callback.

Very Easy to Make.2/10
Still not bad for first script.
Reply
#4

Quote:
Originally Posted by -ExG-VirusKiller
Посмотреть сообщение
You have to paste the code inside the OnPlayerCommandtext callback.

Very Easy to Make.2/10
Still not bad for first script.
Fixed
Reply
#5

There a Maps In Teleports ?? or not?
Reply
#6

Nice but its all some messages and few commands
Nice if its your first release
Try making this teleport commands into a dialog
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)