Want more features on Pastebin? Sign Up, it's FREE!
Guest

pawn code

By: a guest on Feb 27th, 2012  |  syntax: PAWN  |  size: 2.23 KB  |  views: 37  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public OnGameModeInit()
  2. {
  3.     AntiDeAMX(); //AntiDeAMX Schutz vor Scriptdiebstahl (amx datei in pwn umwandeln nicht mehr möglich => Script ist sicher)
  4.     UsePlayerPedAnims();
  5.     DisableInteriorEnterExits(); //Alle gelben Eingänge deaktivieren
  6.         SetGameModeText("[CGR] Gamemode");
  7.         //SKINS
  8.         //Skins ( habe ich rausgenommen, da es sonst sehr lang wäre
  9.        
  10.     //MOTD Timer
  11.         SetTimer("MOTD",900000,1);
  12.         //Tutorial Timer
  13.         SetTimer("Tutorial", 15000, 1);
  14.         //
  15.         Create3DTextLabel("Fahrzeug Shop", GRUEN,2423.5764,-2517.4011,13.6546,40.0,0); //Fahrzeug Shop 3D TextLabel
  16.         CreatePickup(1239,1,2423.5764,-2517.4011,13.6546); //Fahrzeug Shop
  17.         //Race HotSpot Ocean Docks
  18.         //Objekte habe ich rausgenommen, da es sonst sehr lang wäre
  19.         return 1;
  20. }
  21.  
  22. public OnPlayerConnect(playerid)
  23. {
  24.         //Race HotSpot Ocean Docks
  25.         //RemoveBuildings habe ich rausgenommen, da es sonst sehr lang wäre
  26.  
  27.         //Fahrzeug System
  28.         for(new i = 1; i < MAX_VEHICLES; i++)
  29.         {
  30.                 new string[32];
  31.                         format(string, sizeof(string), "%d.car", i);
  32.                         if(fexist(string))
  33.                         {
  34.                                 LadeFahrzeug(i);
  35.                     CreateVehicle(CarInfo[i][aModel], CarInfo[i][aX], CarInfo[i][aY], CarInfo[i][aZ], CarInfo[i][aAngle],0, 0, -1);
  36.                         }
  37.         }
  38.  
  39.         //MapIcons
  40.         SetPlayerMapIcon(playerid,0,2429.3838,-2581.2346,13.0577,33,0,1); //AmmuNation Map Icon
  41.         //
  42.         SetPVarInt(playerid, "Gemutet", 0);
  43.     new string[128];
  44.         format(string,sizeof(string),"[SPIELERINFO] Spieler %s hat den Server betreten.",SpielerName(playerid));
  45.         SendClientMessageToAll(GELB,string);
  46.     PlayAudioStreamForPlayer(playerid,"http://cgr-blackjack.server-free.de/NFS%20-%20Get%20Low.mp3");
  47.     SendClientMessage(playerid,GRUEN,"Willkommen auf [GER]Carbon Grand Racing!");
  48.         new Spielerdatei[64];
  49.         new name[MAX_PLAYER_NAME];
  50.         GetPlayerName(playerid,name,sizeof(name));
  51.         format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
  52.         if(dini_Exists(Spielerdatei))
  53.         {
  54.             ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Dein Account wurde gefunden. Gib bitte dein Passwort ein.","Login","Abbrechen");
  55.         }
  56.         else
  57.         {
  58.         ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Registration","Gib bitte das gewünschte Passwort ein.","Registrieren","Abbrechen");
  59.         }
  60.         return 1;
  61. }
clone this paste RAW Paste Data