Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- TELEPORTS CON VEHICULO, ESPECIALIDADO PARA SERVIDORES STUNT
- ECHO POR GONZALO 293 BAJO LICENCIA DE CREATIVE COMMONS
- ESPERO QUE LO DISFRUTEN Y QUE TENGAN UN BUEN 2016 :D
- NO ROBAR CREDITOS POR FAVOR!
- */
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- #else
- main()
- {
- print("\n--------------------------------------");
- print(">> SISTEMA DE TELEPORTS CON VEHICULOS <<");
- print("-------------GONZALO 293--------------\n");
- }
- #endif
- //STOCK
- stock TeleportConVehiculo(playerid, Float:x,Float:y,Float:z)
- {
- new tipoauto = GetPlayerVehicleID(playerid);
- new pasajeros=GetPlayerState(playerid);
- if(pasajeros!=PLAYER_STATE_DRIVER)
- {
- SetPlayerPos(playerid,x,y,z);
- }
- else if(IsPlayerInVehicle(playerid, tipoauto) == 1)
- {
- SetVehiclePos(tipoauto,x,y,z);
- }
- else
- {
- SetPlayerPos(playerid,x,y,z);
- }
- }
- CMD:mansionlv(playerid, params[])
- {
- TeleportConVehiculo(playerid,1551.588256, 2772.915527, 10.820312);
- return 1;
- }
- /*
- COMMAND:mansionlv(playerid, params[])
- {
- TeleportConVehiculo(playerid,1551.588256, 2772.915527, 10.820312);
- return 1;
- }
- Pueden elegir la manera mas comoda, solo descomentando esto!
- */
Advertisement
Add Comment
Please, Sign In to add comment