Oggi è 28/03/2024, 19:08

Tutti gli orari sono UTC + 1 ora [ ora legale ]



Regole del forum


- Dare titoli sensati, non titoli tipo "Aiuto" oppure "Problema", i topic analoghi verranno immediatamente chiusi.
- Utilizzare http://www.pastebin.com per script superiori a 20 righe.



 Pagina 1 di 1 [ 11 messaggi ] 

  Apri un nuovo argomento Rispondi all’argomento

  Stampa pagina

Autore Messaggio
 Oggetto del messaggio: Postate qui i vostri script Utili ;)
MessaggioInviato: 02/07/2011, 14:11 
Avatar utente
Utente

Iscritto il: 14/06/2011
Messaggi: 188
Località: Napoli
Favourite GTA: San Andreas

Karma
0


Non connesso
(Lo rifaccio perchè nell'altro Topic Certa Gente e andata un pò OT, :uhmsese: )
Ragazzi, Che ne dite di postare Script Utili? (Piccoli Script Eh xD)...
Io ne Posto uno Mio:
Comando Spawner Vehicle (Fatto Da me);
Codice:
   if(cmd[0].tolower() == "/v")
   {
   if(cmd.len() !=2)return sendPlayerMessage(playerid, "Usa: /v <ID VEICOLO>", VERDE, true);
   local Veh = cmd[1].tointeger();
   local Pos = getPlayerCoordinates(playerid);
   if(Veh < 0 && Veh > 126)return sendPlayerMessage(playerid,  "Veicolo Invalido!!", VERDE, true);
   createVehicle(Veh, Pos[0]+4, Pos[1], Pos[2], 0, 0, 0, 0);
   sendPlayerMessage(playerid, "Veicolo ID:" + Veh + "Creato!, VERDE, true);
   }

Testato: Non testato
Se ho sbagliato Ditemelo, E' il mio primo comando....

_________________
SA:MP

House System v2.0 by me: http://www.gta-center.com/forums/viewtopic.php?f=42&t=1387
ATM System v2.0 by me: viewtopic.php?f=42&t=1343
Coins System v1.0, 1.1 e 1.2 by me: viewtopic.php?f=42&t=1252


IV:MP

Guida agli Operatori: viewtopic.php?f=57&t=1485
Guida alle funzioni Player: viewtopic.php?f=57&t=1415
Guida condizioni: IF/ELSE/ELSEIF


Top
  
 

 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 02/07/2011, 15:05 
Avatar utente
Administrator

Iscritto il: 02/09/2010
Messaggi: 1349
Località: Agrigento
Favourite GTA: Vice City
PlayStation Network: Giovanni94m
Xfire: Giovanni94m
Steam: Giovanni94m

Karma
10


Non connesso
Spawn veicoli con nome o id:
Codice:
local vehicleNames = [
      "Admiral", "Airtug", "Ambulance", "Banshee", "Benson", "Biff", "Blista Compact", "Bobcat", "Boxville", "Buccaneer",
      "Burrito", "Burrito", "Bus", "Cabby", "Cavalcade", "Chavos", "Cognoscenti", "Comet", "Coquette",
      "DF8", "Dilettante", "Dukes", "E109", "Emperor", "Emperor", "Esperanto", "Faction", "FBI", "Feltzer",
      "Feroci", "Feroci", "Firetruck", "Flatbed", "Fortune", "Forklift", "Futo", "FXT", "Habanero", "Hakumai",
      "Huntley", "Infernus", "Ingot", "Intruder", "Landstalker", "Lokus", "Manana", "Marbella", "Merit", "Minivan",
      "Moonbeam", "MrTasty", "Mule", "Noose", "Nstockade", "Oracle", "Packer", "Patriot", "Perennial", "Perennial",
      "Peyote", "Phantom", "Pinnacle", "PMP600", "Police", "Police", "Polpatriot", "Pony", "Premier", "Pres", "Primo",
      "Pstockade", "Rancher", "Rebla", "Ripley", "Romero", "Rom", "Ruiner", "Sabre", "Sabre", "SabreGT", "Schafter",
      "Sentinel", "Solair", "Speedo", "Stalion", "Steed", "Stockade", "Stratum", "Stretch", "Sultan", "SultanRS",
      "SuperGT", "Taxi", "Taxi", "Trash", "Turismo", "Uranus", "Vigero", "Vigero", "Vincent", "Virgo", "Voodoo",
      "Washington", "Willard", "Yankee", "Bobber", "Faggio", "Hellfury", "NRG900", "PCJ600", "Sanchez", "Zombieb",
      "Annihilator", "Maverick", "Polmav", "Tourmav", "Dinghy", "Jetmax", "Marquis", "Predator", "Reefer", "Squalo",
      "Tuga", "Tropic", "Cablecar", "Subway" ];


Codice:
   if(cmd[0] == "/v")
   {
      if(cmd.len() == 2)
      {
         local car;
         if(isInteger(cmd[1]))
         {
            car = cmd[1].tointeger();
         }else{
            car = getVehicleIDFromName(cmd[1].tostring());
         }
         local pos;
         if(isPlayerInAnyVehicle(playerid))
            pos = getVehicleCoordinates(getPlayerVehicleId(playerid));
         else
            pos = getPlayerCoordinates(playerid);
         local heading = getPlayerHeading(playerid);
         
         local veh = createVehicle(car, pos[0], pos[1], pos[2], 0.0, 0.0, heading, 1, 1, 1, 1);
         if(veh != INVALID_VEHICLE_ID)
         {
            if(isPlayerInAnyVehicle(playerid)) deleteVehicle(getPlayerVehicleId(playerid));
            warpPlayerIntoVehicle(playerid, veh);
            sendPlayerMessage(playerid, "** Hai spawnato " + getVehicleName(car) + " (Model ID:" + car.tointeger() + ")", COLOR_GREEN);
         }else{
            sendPlayerMessage(playerid, "** Utilizzo: /v <nome-auto o id>", COLOR_GREY);
         }
      }
      return 1;
   }


Codice:
function getVehicleIDFromName(vehname)
{
   for(local i = 0; i < vehicleNames.len(); i += 1)
   {
      if(vehicleNames[i].tolower().find(vehname.tolower()) != null) return i;
   }
   return -1;
}

_________________
Immagine
Immagine
Immagine
Immagine
Immagine
Immagine
Immagine


Top
 E-mail  
 
 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 03/07/2011, 17:05 
Avatar utente
Utente

Iscritto il: 14/06/2011
Messaggi: 188
Località: Napoli
Favourite GTA: San Andreas

Karma
0


Non connesso
Mi può servire :ahsese: Mi dai il permesso di prenderlo e modificarlo? :|

_________________
SA:MP

House System v2.0 by me: http://www.gta-center.com/forums/viewtopic.php?f=42&t=1387
ATM System v2.0 by me: viewtopic.php?f=42&t=1343
Coins System v1.0, 1.1 e 1.2 by me: viewtopic.php?f=42&t=1252


IV:MP

Guida agli Operatori: viewtopic.php?f=57&t=1485
Guida alle funzioni Player: viewtopic.php?f=57&t=1415
Guida condizioni: IF/ELSE/ELSEIF


Top
  
 
 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 03/07/2011, 18:23 
Avatar utente
Administrator

Iscritto il: 02/09/2010
Messaggi: 1349
Località: Agrigento
Favourite GTA: Vice City
PlayStation Network: Giovanni94m
Xfire: Giovanni94m
Steam: Giovanni94m

Karma
10


Non connesso
Fai quello che vuoi ;)

_________________
Immagine
Immagine
Immagine
Immagine
Immagine
Immagine
Immagine


Top
 E-mail  
 
 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 04/07/2011, 21:37 
Avatar utente
Utente

Iscritto il: 14/06/2011
Messaggi: 188
Località: Napoli
Favourite GTA: San Andreas

Karma
0


Non connesso
: Thanks :

_________________
SA:MP

House System v2.0 by me: http://www.gta-center.com/forums/viewtopic.php?f=42&t=1387
ATM System v2.0 by me: viewtopic.php?f=42&t=1343
Coins System v1.0, 1.1 e 1.2 by me: viewtopic.php?f=42&t=1252


IV:MP

Guida agli Operatori: viewtopic.php?f=57&t=1485
Guida alle funzioni Player: viewtopic.php?f=57&t=1415
Guida condizioni: IF/ELSE/ELSEIF


Top
  
 
 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 08/07/2011, 22:20 
Avatar utente
Utente

Iscritto il: 14/06/2011
Messaggi: 188
Località: Napoli
Favourite GTA: San Andreas

Karma
0


Non connesso
Eccone un Altro, Questo serve per bannare un player stabilendo i minuti...

Codice:
if(cmd[0].tolower() == "/ban")
    {
   if(cmd.len != 4)return sendPlayerMessage(playerid, VERDE, "Usa: /ban <ID> <Motivo> <Minuti Ban>");
   local ID = cmd[1].tointeger();
   local Motivo = cmd[2].tostring();
   local Secondi = cmd[3].tointeger();
   sendMessageToAll("L'admin" + getPlayerName(playerid) + "ha bannato" + getPlayerName(ID) + "per"+ Secondi*60 + "Minuti ("+ Secondi + "Sec.). Motivo:" + Motivo, GIALLO, true);
   banPlayer(ID, Secondi*60);
   return 1;
   }


Ditemi se va bene.. ;)

_________________
SA:MP

House System v2.0 by me: http://www.gta-center.com/forums/viewtopic.php?f=42&t=1387
ATM System v2.0 by me: viewtopic.php?f=42&t=1343
Coins System v1.0, 1.1 e 1.2 by me: viewtopic.php?f=42&t=1252


IV:MP

Guida agli Operatori: viewtopic.php?f=57&t=1485
Guida alle funzioni Player: viewtopic.php?f=57&t=1415
Guida condizioni: IF/ELSE/ELSEIF


Top
  
 
 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 09/07/2011, 11:10 
Avatar utente
Utente

Iscritto il: 14/06/2011
Messaggi: 188
Località: Napoli
Favourite GTA: San Andreas

Karma
0


Non connesso
EDITED!

_________________
SA:MP

House System v2.0 by me: http://www.gta-center.com/forums/viewtopic.php?f=42&t=1387
ATM System v2.0 by me: viewtopic.php?f=42&t=1343
Coins System v1.0, 1.1 e 1.2 by me: viewtopic.php?f=42&t=1252


IV:MP

Guida agli Operatori: viewtopic.php?f=57&t=1485
Guida alle funzioni Player: viewtopic.php?f=57&t=1415
Guida condizioni: IF/ELSE/ELSEIF


Ultima modifica di S&C il 29/07/2011, 12:52, modificato 1 volta in totale.

Top
  
 
 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 09/07/2011, 11:19 
Banned

Iscritto il: 31/10/2010
Messaggi: 1363
Località: Sicilia
Favourite GTA: San Andreas
Xfire: peppinux

Karma
-10


Non connesso
E' un edit del ProxyDetector della LA-RP fatto per Squirrel :facepalm:.


Top
 E-mail  
 
 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 09/07/2011, 13:13 
Avatar utente
Utente

Iscritto il: 14/06/2011
Messaggi: 188
Località: Napoli
Favourite GTA: San Andreas

Karma
0


Non connesso
E io che ho detto .-. HO scritto: Preso dal Pawno, e modificato allo squirrel .-. :facepalm:

_________________
SA:MP

House System v2.0 by me: http://www.gta-center.com/forums/viewtopic.php?f=42&t=1387
ATM System v2.0 by me: viewtopic.php?f=42&t=1343
Coins System v1.0, 1.1 e 1.2 by me: viewtopic.php?f=42&t=1252


IV:MP

Guida agli Operatori: viewtopic.php?f=57&t=1485
Guida alle funzioni Player: viewtopic.php?f=57&t=1415
Guida condizioni: IF/ELSE/ELSEIF


Top
  
 
 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 09/07/2011, 14:18 
Avatar utente
Administrator

Iscritto il: 02/09/2010
Messaggi: 1349
Località: Agrigento
Favourite GTA: Vice City
PlayStation Network: Giovanni94m
Xfire: Giovanni94m
Steam: Giovanni94m

Karma
10


Non connesso
Tutto sbagliato. Non esistono new nello squirrel :sisi:

_________________
Immagine
Immagine
Immagine
Immagine
Immagine
Immagine
Immagine


Top
 E-mail  
 
 Oggetto del messaggio: Re: Postate qui i vostri script Utili ;)
MessaggioInviato: 09/07/2011, 15:21 
Avatar utente
Utente

Iscritto il: 14/06/2011
Messaggi: 188
Località: Napoli
Favourite GTA: San Andreas

Karma
0


Non connesso
Già ho sbagliato alcune cose :S COrreggilo tu Giovanni asd

_________________
SA:MP

House System v2.0 by me: http://www.gta-center.com/forums/viewtopic.php?f=42&t=1387
ATM System v2.0 by me: viewtopic.php?f=42&t=1343
Coins System v1.0, 1.1 e 1.2 by me: viewtopic.php?f=42&t=1252


IV:MP

Guida agli Operatori: viewtopic.php?f=57&t=1485
Guida alle funzioni Player: viewtopic.php?f=57&t=1415
Guida condizioni: IF/ELSE/ELSEIF


Top
  
 
Visualizza ultimi messaggi:  Ordina per  
 Pagina 1 di 1 [ 11 messaggi ] 

  Apri un nuovo argomento Rispondi all’argomento

Tutti gli orari sono UTC + 1 ora [ ora legale ]



Chi c’è in linea

Visitano il forum: Nessuno e 4 ospiti


Non puoi aprire nuovi argomenti
Non puoi rispondere negli argomenti
Non puoi modificare i tuoi messaggi
Non puoi cancellare i tuoi messaggi
Non puoi inviare allegati

Cerca per:
Vai a:  
cron