GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Szkript kérések => A témát indította: Aqe34 - 2012. December 25. - 12:40:34

Cím: npc
Írta: Aqe34 - 2012. December 25. - 12:40:34
Valaki küldene egy npc sciptet?(pwn script amiben csak átiroma  .rec nevét)elõre is köszönöm
Cím: npc
Írta: Ezredes.$ - 2012. December 25. - 12:43:52
http://sampforum.hu/index.php?topic=9872.0
..
Cím: npc
Írta: Aqe34 - 2012. December 25. - 12:45:56
igen ezt már én is megtaláltam csakhozgy ez nekem erroros...
Cím: npc
Írta: Ezredes.$ - 2012. December 25. - 12:49:12
Akkor nem jól csinálod...
Cím: npc
Írta: lusta19 - 2012. December 25. - 13:30:30
Majd átírod mert az én cuccaim vannak benne .
Npcmodes rész nem kell?
 
#include <a_samp>
new npcveh;
public OnFilterScriptInit ( )
{
  ConnectNPC(\"Buszos\", \"busmod\");
  npcveh = CreateVehicle (11,1358.8230,-1159.5790,23.2170,180.8786,111,109,-1);
  return 1;
}
public OnPlayerSpawn ( playerid )
{
  if ( IsPlayerNPC ( playerid ) )
  {
            new npcname [ MAX_PLAYER_NAME ];
            GetPlayerName ( playerid, npcname, sizeof ( npcname ) );
            if ( !strcmp ( npcname, \"Buszos\", true ) )
            {
                        PutPlayerInVehicle ( playerid, npcveh, 0 );
                        SetPlayerSkin(playerid, 61);
            }
            return 1;
  }
  return 1;
}
Cím: npc
Írta: Aqe34 - 2012. December 25. - 13:34:11
azt is jöhet:D
Cím: npc
Írta: lusta19 - 2012. December 25. - 13:37:38
#define RECORDING \"testing\"  //Rec fájl  nevét írod ide
#define RECORDING_TYPE 1
#include <a_npc>
public OnRecordingPlaybackEnd ( )
{
  StartRecordingPlayback ( RECORDING_TYPE, RECORDING );
  return 0;
}
#if RECORDING_TYPE == 1
  public OnNPCEnterVehicle ( vehicleid, seatid )
  {
    StartRecordingPlayback ( RECORDING_TYPE, RECORDING );
    return 0;
  }
  public OnNPCExitVehicle ( )
  {
    StopRecordingPlayback ( );
    return 0;
  }
#endif
Cím: npc
Írta: Aqe34 - 2012. December 25. - 13:40:52
Köszi ment a +