Hola a toda T! , hoy les traigo post con gamemodes y filterscripts y un
mini tutorial de pawn para que empiezen a modificar sus gamemodes y
hacer sus Filterscripts
Tutorial Pawn :
Bueno para comenzar el script pueden poner algunos creditos que empiezan con
"//" con eso estamos diciendo que es un comentario , por lo que no afectara en el
script
1)_ // Script hecho por "tu nombre"
Despues van los includes, que son los que contienen las natives para hacer el gm o fs
vamos a utilizar el a_samp
2)_ #include <a_samp>
despues pueden poner algunos defines para color de los textos del juego pero
no es de necesaria importancia, lo pueden poner si quieren
seguimos con los creditos que van a aparecer en la consola al abrir el server
3)_ main()
{
print("n———————————-"
print(" Game Modo Hecho por "tu nombre"
print("———————————-n"
}
luego va el public, el public es… como explicarlo xD , osea el public vendria a ser
para todos los players, los pjs para elejir,donde va a aparecer, etc.
Donde dice "SetGameModeText" es el nombre de la partida que se esta jugando
pueden poner lo que quieran.
El "AddPlayerClass" son los pjs que les van a aparecer para elejir, pueden agregar
mas, pero tienen que tenerlos ids, pero eso lo vamos a ver despues xD
4)_ public OnGameModeInit()
{
UsePlayerPedAnims();
SetGameModeText("aca poner lo q quieran"
AddPlayerClass(0, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(241, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(29, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(2, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(28, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(23, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(19, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(30, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(179, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(84, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(137, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(162, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(101, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(230, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(100, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(106, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(192, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(201, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(245, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(195,2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(263,2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(193, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(169, 2062.502,-2629.013,13.212, 269.1425, 0, 0, 0, 0, 0, 0);
Despues pueden poner vehiculos,armas,etc para que aparescan siempre en el mismo
lugar:
AddStaticVehicle(522,2062.766,-2631.980,13.212,90.0,-1,-1); // spawnpoint (1)
AddStaticVehicle(502,2062.715,-2634.880,13.212,90.0,-1,-1); // spawnpoint (2)
AddStaticVehicle(522,2062.942,-2637.761,13.212,90.0,-1,-1); // spawnpoint (3)
AddStaticVehicle(411,2062.982,-2640.517,13.212,90.0,-1,-1); // spawnpoint (4)
AddStaticVehicle(506,2062.695,-2643.524,13.212,90.0,-1,-1); // spawnpoint (5)
AddStaticVehicle(506,2062.841,-2646.773,13.212,90.0,-1,-1); // spawnpoint (6)
AddStaticVehicle(522,2053.251,-2652.041,13.212,0.0,-1,-1); // spawnpoint (7)
AddStaticVehicle(451,2050.178,-2652.234,13.212,0.0,-1,-1); // spawnpoint (8)
AddStaticVehicle(477,2046.978,-2652.543,13.212,0.0,-1,-1); // spawnpoint (9)
AddStaticVehicle(477,2043.796,-2652.739,13.212,0.0,-1,-1); // spawnpoint (10)
AddStaticVehicle(402,2040.714,-2652.458,13.212,0.0,-1,-1); // spawnpoint (11)
AddStaticVehicle(402,2037.481,-2652.610,13.212,0.0,-1,-1); // spawnpoint (12)
AddStaticVehicle(522,2034.245,-2652.587,13.212,0.0,-1,-1); // spawnpoint (13)
AddStaticVehicle(429,2056.434,-2622.351,13.212,179.0,-1,-1); // spawnpoint (14)
AddStaticVehicle(522,2053.450,-2622.612,13.212,179.0,-1,-1); // spawnpoint (15)
AddStaticVehicle(602,2050.365,-2622.618,13.212,179.0,-1,-1); // spawnpoint (16)
AddStaticVehicle(522,2047.210,-2622.667,13.212,179.0,-1,-1); // spawnpoint (17)
AddStaticVehicle(568,2043.780,-2622.432,13.212,179.0,-1,-1); // spawnpoint (18)
AddStaticVehicle(424,2040.687,-2622.465,13.212,179.0,-1,-1); // spawnpoint (19)
AddStaticVehicle(522,2037.533,-2622.550,13.212,179.0,-1,-1); // spawnpoint (20)
AddStaticVehicle(478,2024.857,-2652.566,13.212,0.0,-1,-1); // spawnpoint (21)
AddStaticVehicle(560,2021.417,-2652.500,13.212,0.0,-1,-1); // spawnpoint (22)
AddStaticVehicle(522,2015.320,-2652.812,13.212,0.0,-1,-1); // spawnpoint (23)
AddStaticVehicle(541,2012.119,-2652.550,13.212,0.0,-1,-1); // spawnpoint (24)
AddStaticVehicle(541,2030.791,-2652.371,13.212,0.0,-1,-1); // spawnpoint (25)
AddStaticVehicle(565,2033.986,-2622.403,13.212,184.0,-1,-1); // spawnpoint (26)
AddStaticVehicle(522,2002.464,-2652.667,13.212,0.0,-1,-1); // spawnpoint (27)
AddStaticVehicle(503,2005.534,-2652.222,13.212,0.0,-1,-1); // spawnpoint (28)
AddStaticVehicle(522,2008.601,-2652.326,13.212,0.0,-1,-1); // spawnpoint (29)
AddStaticVehicle(559,2018.546,-2652.417,13.212,0.0,-1,-1); // spawnpoint (30)
AddStaticVehicle(522,2027.829,-2652.132,13.212,0.0,-1,-1); // spawnpoint (31)
Tambien pueden crear objetos,para crear pista de drift o stunt se usa el "CreateObject" y la id
del objeto,la posicion y el angulo:
// Stunt en los santos
CreateObject(13592,1508.962,-2604.693,24.117,0.0,18.908,0.0); // object (3)
CreateObject(13592,1504.887,-2611.826,24.705,0.0,30.940,0.0); // object (5)
CreateObject(1634,1886.696,-2543.177,18.484,20.626,0.0,91.960); // object (11)
CreateObject(13590,1865.545,-2554.830,13.723,0.0,0.0,0.0); // object (15)
CreateObject(1634,1883.329,-2537.417,13.844,4.297,0.0,91.960); // object (16)
CreateObject(1634,1884.175,-2548.672,13.844,4.297,0.0,86.803); // object (17)
CreateObject(13590,1849.871,-2551.842,13.773,0.0,0.0,0.0); // object (18)
CreateObject(18367,1925.825,-2331.118,61.778,-24.064,0.0,177.903); // object (23)
CreateObject(18367,1926.669,-2304.216,76.611,-24.064,0.0,179.622); // object (25)
CreateObject(18367,1925.122,-2357.389,46.348,-24.064,0.0,177.903); // object (27)
CreateObject(18367,1924.058,-2383.596,30.972,-24.064,0.0,177.903); // object (28)
CreateObject(18367,1923.493,-2409.463,15.793,-24.064,0.0,177.903); // object (29)
CreateObject(1634,1923.476,-2412.458,13.836,0.0,0.0,0.0); // object (30)
CreateObject(1634,1926.827,-2277.409,93.304,24.924,0.0,0.0); // object (31)
CreateObject(8040,2026.501,-2637.475,13.317,0.0,0.0,-180.000); // object (34)
CreateObject(1634,2068.637,-2493.344,13.594,0.0,0.0,-89.381); // object (35)
CreateObject(1634,2074.473,-2493.274,18.951,32.659,0.0,-89.381); // object (36)
CreateObject(1634,2076.707,-2493.256,25.983,63.598,0.0,-89.381); // object (38)
CreateObject(1634,2075.325,-2493.254,33.528,86.803,0.0,-89.381); // object (39)
CreateObject(1634,2071.663,-2493.293,40.018,101.413,0.0,-89.381); // object (40)
CreateObject(1634,2065.825,-2493.339,46.889,109.148,0.0,-89.381); // object (41)
CreateObject(1634,1717.415,-2408.503,13.852,0.0,0.0,0.0); // object (58)
CreateObject(1634,1717.392,-2403.310,17.218,13.751,0.0,0.0); // object (59)
CreateObject(1634,1717.391,-2398.234,22.828,30.940,0.0,0.0); // object (60)
CreateObject(1634,1777.541,-2564.099,20.585,48.988,0.0,175.325); // object (50)
CreateObject(1634,1777.839,-2559.917,13.844,13.751,0.0,175.325); // object (51)
CreateObject(1894,1528.738,-2507.311,12.555,0.0,0.0,179.623); // object (37)
CreateObject(12956,1797.525,-2416.522,15.833,0.0,0.0,0.0); // object (41)
CreateObject(16098,1553.809,-2461.125,12.093,0.0,0.0,-90.241); // object (42)
CreateObject(3361,1656.095,-2533.398,17.580,0.0,0.0,0.0); // object (44)
CreateObject(8395,1551.757,-2544.952,-3.315,0.0,-30.080,2.578); // object (46)
CreateObject(1634,1538.563,-2545.656,31.372,27.502,0.0,91.100); // object (49)
CreateObject(13643,1884.320,-2556.413,13.743,0.0,0.0,-178.763); // object (32)
CreateObject(16085,1746.979,-2540.889,13.734,0.0,0.0,0.0); // object (33)
CreateObject(17565,2109.813,-2544.002,14.398,0.0,0.0,0.0); // object (34)
CreateObject(18451,1988.956,-2622.899,13.014,0.0,0.0,91.100); // object (35)
CreateObject(7979,1413.963,-2425.484,17.192,12.892,0.0,0.0); // object (38)
CreateObject(13640,1881.978,-2562.228,13.442,0.0,0.0,0.0); // object (40)
CreateObject(16085,1853.281,-2449.757,13.491,0.0,0.0,0.0); // object (41)
CreateObject(16085,1901.862,-2284.914,13.459,0.0,0.0,0.0); // object (42)
CreateObject(13641,1990.476,-2261.313,14.216,0.0,0.0,86.803); // object (43
Continuamos, esto se cierra asi :
return 1;
}
despues le damos la orden de que ya terminamos de poner cosas, autos,objetos etc, asi:
public OnGameModeExit()
{
return 1;
}
5)_ luego ponemos el lugar en donde se van a elejir los players,
la posicion de la camara y hacia donde va a mirar:
ahi abrimos el "public" de nuevo para que elijan el pj
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1764.9407,-2392.4565,22.7496);
SetPlayerCameraPos(playerid, 1768.4640,-2391.8730,22.7496);
SetPlayerCameraLookAt(playerid, 1764.9407,-2392.4565,22.7497);
6)_Despues ponemos un par de textos de publicidad
if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7){
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid, "[Server hecho por "tu nombre"]", 1000, 6);}
return 1;
}
Fijense que cuando terminamos de pone alguna funcion o algo se cierra con
"return 1;"
luego esto:
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
no lo toquen…
seguimos con el public cuando se conecta un player….
public OnPlayerConnect(playerid)
{
y lo q queremos que aparesca cuando se conecta
GameTextForPlayer(playerid,"~r~Insane Server By Fubil] Diviertanse",2500,5);
SendClientMessage(playerid, COLOR_GREEN, "Bienvenidos a Insane server By [Z] [e] [R] [o]"
SendClientMessage(playerid, COLOR_YELLOW, "[----> Insame Server By ^Fubil* <----]"
SendClientMessage(playerid, COLOR_WHITE, "Para ver los comandos: /comandos"
SendClientMessage(playerid, COLOR_WHITE, "Para ir al xjump /xjump"
SendClientMessage(playerid, COLOR_WHITE, "Para abrir el shop /shop"
SendClientMessage(playerid, COLOR_WHITE, "Para abrir la lista de teleports /tele"
SendClientMessage(playerid, COLOR_WHITE, "Para abrir el menu de armas /menuarmas"
donde dice: "SendClientMessage(playerid, COLOR_WHITE, "Para abrir el menu de armas /menuarmas""
pueden modificar la parte q dice "para abrir el menu bla bla y poner su publicidad,
comando,etc…
despues seguimos con…..
GivePlayerMoney(playerid, 1000000); <—– modifican el numero
esa es la cantidad de dinero que va a tener un player al entrar al server
seguimos, si quiren q un player vea quien entra y sale del server ponen esto:
new pName[ 30 ], string[ 256 ];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s Entro al server.", pName);
SendClientMessageToAll(COLOR_RED,string);
return 1;
}
al poner "%" le estamos diciendo… como decirlo….. em…
"%" vendria a ser el player que entra, osea cualquier player
donde dice:
SendClientMessageToAll(COLOR_RED,string);
es el color del mensaje y le pueden cambiar el "ToAll" por
SendClientMessage pero lo va a ver solo el player q entra
seguimos, cuando un player se desconecte
new pName[ 30 ], string[ 256 ];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s Entro al server.", pName);
SendClientMessageToAll(COLOR_RED,string);
return 1;
}
bueno es masomenos lo ensencial que debe tener un gamemode……..
tambien le pueden agregar algun comando q ustedes quieran, por ejemplo:
al poner "/comandos" le van a aparecer los comandos que ustedes pongan
if (strcmp("/comandos", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_RED,, "Para ir al Xjump, type: /xjump"
SendClientMessage(playerid, COLOR_RED,, "Para ver otros teleports, type: /otrosteles"
SendClientMessage(playerid, COLOR_RED,, "Para ir al Stunt Park, type: /stuntpark"
SendClientMessage(playerid, COLOR_RED,, "Para abrir el shop, type: /shop"
SendClientMessage(playerid, COLOR_RED,, "Para ir a la carrera, type: /race"
SendClientMessage(playerid, COLOR_RED,, "Para ir al Megajump, type: /megajump"
SendClientMessage(playerid, COLOR_RED,, "Para ir al jump, type: /jump"
SendClientMessage(playerid, COLOR_RED,, "Para ir al Arena DM, type: /arenadm"
SendClientMessage(playerid, COLOR_RED,, "Para ir al Arena DM 2, type: /arenadm2"
SendClientMessage(playerid, COLOR_RED,, "Para ir al Sniper DM, type: /sniperdm"
SendClientMessage(playerid, COLOR_RED,, "Para ver el menu de armas, type: /menuarmas"
SendClientMessage(playerid, COLOR_RED, "Para poner tu coche en modo dios, type: /godmode"
SendClientMessage(playerid, COLOR_GREEN "Para ver mas comandos, type: /comandos2"
return 1;
donde dice "if(strcmp("/comandos" (…) pueden cambiarle el nombre del cmd
como po ejemplo /ayuda o /help es a su gusto xd
al poner : "SendClientMessage" estamos dando la orden de que mande un
mensaje.
seguimos con el "playerid" player id es la id del player que ponga /comandos
"COLOR_RED" es el color del texto que va a aparecer, pueden cambiarlo
y asi masomenos
COLOR_RED
COLOR_GREEN
COLOR_BLUE
y sigue el mensaje que ahi pueden poner sus comandos o lo q quieran
y aca les dejo un menu de armas y un menu de teleports hecho por mi xP
// Menu de Armas By ^Fubil+ contacto : [email protected] =D
if(strcmp(cmdtext, "/infrarojo", true) == 0)
{
GivePlayerWeapon(playerid, 45, 1);
SendClientMessage(playerid,COLOR_WHITE,"Has obetenido una vision infra roja."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/nvision", true) == 0)
{
GivePlayerWeapon(playerid, 44, 1);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una vision nocturna."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/katana", true) == 0)
{
GivePlayerWeapon(playerid, 8, 1);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una Katana."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/granada", true) == 0)
{
GivePlayerWeapon(playerid, 16, 1);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una granada de explosion."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/smokegranada", true) == 0)
{
GivePlayerWeapon(playerid, 17, 1);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una granada de humo."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/deagle", true) == 0)
{
GivePlayerWeapon(playerid, 24, 100);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una deagle."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/9mm", true) == 0)
{
GivePlayerWeapon(playerid, 23, 100);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una deagle."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/m3", true) == 0)
{
GivePlayerWeapon(playerid, 26, 100);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una itaca recortada."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/ak47", true) == 0)
{
GivePlayerWeapon(playerid, 30, 100);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una ak-47."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/m4a1", true) == 0)
{
GivePlayerWeapon(playerid, 31, 100);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una m4-a1."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/sniper", true) == 0)
{
GivePlayerWeapon(playerid, 34, 100);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido un Sniper."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/minigun", true) == 0)
{
GivePlayerWeapon(playerid, 38, 100);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una minigun =P."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/c4+detonador", true) == 0)
{
GivePlayerWeapon(playerid, 39, 5);
GivePlayerWeapon(playerid, 40, 1);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una C4 + Detonador."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/camara", true) == 0)
{
GivePlayerWeapon(playerid, 43, 1);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido una Camara de Fotos."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/lanzallamas", true) == 0)
{
GivePlayerWeapon(playerid, 37, 100);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido un lanza llamas."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if(strcmp(cmdtext, "/aerosol", true) == 0)
{
GivePlayerWeapon(playerid, 41, 100);
SendClientMessage(playerid,COLOR_GREEN,"Has obetenido un aerosol."
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
if (strcmp("/menuarmas", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_DARKBLUE, "——–=Menu de Armas By ^Fubil+=——– "
SendClientMessage(playerid, COLOR_WHITE, "[Menu de Armas /katana ; /granada ; /smokegranada ; /deagle"
SendClientMessage(playerid, COLOR_WHITE, "[Menu de Armas2 /9mm ; /m3 ; /ak47 ; /m4a1 ; /sniper "
SendClientMessage(playerid, COLOR_WHITE, "[Menu de Armas3 /minigun ; /c4+detonador ; /camara ; /lanzallamas ; /aerosol "
SendClientMessage(playerid, COLOR_WHITE, "[Menu de Armas4 /nvision ; /infrarojo ; /para ; /buyvida para comprar vida "
return 1;
}
Y aca el menu de teleports xD
// Teleports By ZeRo
if(!strcmp(cmdtext, "/sf", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "San Fierro", 4000, 6);
return SetVehiclePos(var0, -1981.5832, 288.114, 35.0581);
}
SetPlayerPos(playerid, -1981.5832, 288.114, 35.0581);
GameTextForPlayer(playerid, "San Fierro", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/lv", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Las Venturas", 4000, 6);
return SetVehiclePos(var0, 2097.5502, 1014.5463, 10.8203);
}
SetPlayerPos(playerid, 2097.5502, 1014.5463, 10.8203);
GameTextForPlayer(playerid, "Las Venturas", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/ls", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Los Santos", 4000, 6);
return SetVehiclePos(var0, 1849.1492, -1370.1807, 13.3984);
}
SetPlayerPos(playerid, 1849.1492, -1370.1807, 13.3984);
GameTextForPlayer(playerid, "Los Santos", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/aerosf", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Aeropuerto de san fierro", 4000, 6);
return SetVehiclePos(var0, -1270.2024, -426.6784, 14.1484);
}
SetPlayerPos(playerid, -1270.2024, -426.6784, 14.1484);
GameTextForPlayer(playerid, "Aeropuerto de san fierro", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/aerols", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Aeropuerto de Los Santos", 4000, 6);
return SetVehiclePos(var0, 1958.7918, -2296.3035, 13.5468);
}
SetPlayerPos(playerid, 1958.7918, -2296.3035, 13.5468);
GameTextForPlayer(playerid, "Aeropuerto de Los Santos", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/aerolv", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Aeropuerto de Las Venturas", 4000, 6);
return SetVehiclePos(var0, 1638.4111, 1591.9707, 10.8203);
}
SetPlayerPos(playerid, 1638.4111, 1591.9707, 10.8203);
GameTextForPlayer(playerid, "Aeropuerto de Las Venturas", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/aeroa", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Aeropuerto Abandonado", 4000, 6);
return SetVehiclePos(var0, 332.8779, 2514.2546, 16.5935);
}
SetPlayerPos(playerid, 332.8779, 2514.2546, 16.5935);
GameTextForPlayer(playerid, "Aeropuerto Abandonado", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/area51", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Area 51", 4000, 6);
return SetVehiclePos(var0, 81.3654, 1919.9946, 17.6569);
}
SetPlayerPos(playerid, 81.3654, 1919.9946, 17.6569);
GameTextForPlayer(playerid, "Area 51", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/pique", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Pique", 4000, 6);
return SetVehiclePos(var0, -1110.4875, 414.5321, 14.5468);
}
SetPlayerPos(playerid, -1110.4875, 414.5321, 14.5468);
GameTextForPlayer(playerid, "Pique", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/cj", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Crazy jump", 4000, 6);
return SetVehiclePos(var0, 1545.5708, -1353.9507, 329.4732);
}
SetPlayerPos(playerid, 1545.5708, -1353.9507, 329.4732);
GameTextForPlayer(playerid, "Crazy jump", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/cj2", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "Crazy jump 2", 4000, 6);
return SetVehiclePos(var0, -1825.4743, 558.1403, 234.8905);
}
SetPlayerPos(playerid, -1825.4743, 558.1403, 234.8905);
GameTextForPlayer(playerid, "Crazy jump 2", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/ammu", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "ammu-nation", 4000, 6);
return SetVehiclePos(var0, -2624.941, 212.9808, 4.6442);
}
SetPlayerPos(playerid, -2624.941, 212.9808, 4.6442);
GameTextForPlayer(playerid, "ammu-nation", 4000, 6);
return 1;
}
if(!strcmp(cmdtext, "/maddog", true))
{
new var0 = GetPlayerVehicleID(playerid);
new var1 = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && var1 == 2)
{
GameTextForPlayer(playerid, "madd dog", 4000, 6);
return SetVehiclePos(var0, 1256.1091, -785.1792, 92.0301);
}
SetPlayerPos(playerid, 1256.1091, -785.1792, 92.0301);
GameTextForPlayer(playerid, "madd dog", 4000, 6);
return 1;
}
if(strcmp(cmdtext, "/bmxpark", true) == 0) {
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s se fue a( /bmxpark )", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1946.201,-1381.074,18.239);
return 1;
}
if(strcmp(cmdtext, "/desertstunt", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,-662.018,2327.373,139.434);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s se fue a( /desertstunt )", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
}
else{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s se fue a( /desertstunt )", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-662.018,2327.373,138.434);
}
return 1;
}
if (strcmp("/telemenu", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_RED, "——–=Menu de Teleports By ^Fubil+=——– "
SendClientMessage(playerid, COLOR_WHITE, "[Menu de Teleports /sf ; /lv ; /sf ; /aerosf ; /aerols ; /aerolv"
SendClientMessage(playerid, COLOR_WHITE, "[Menu de Teleports2 /aeroa ; /area51 ; /pique ; /cj ; /cj2 ; /ammu"
SendClientMessage(playerid, COLOR_WHITE, "[Menu de Teleports3 /maddog ; /bmxpark ; /jump ; /megajump ; /chilliad ; /xjump ; /drift ; /race"
SendClientMessage(playerid, COLOR_WHITE, "——————————–InSanE ServEr—————————————————–"
return 1;
}
Eso son los dos menus, espero que les sirvan xDDD