[Help] RP server NPC - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] RP server NPC (
/showthread.php?tid=125911)
[Help] RP server NPC -
saaruuniuxx - 06.02.2010
Hi why my NPC is joining the game and quickly left the server ?? my server is RP i think he can't login but how do i can the NPC auto login in to server ? sorry for my bad english
that's is FS
|
|
v
Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
new Beagle;
public OnFilterScriptInit()
{
print("Beagle Flyer By Mozilla Firfox Loaded.");
ConnectNPC("Beagle","Beagle");
Beagle = CreateVehicle(511, 0.0, 0.0, 5.0, 0.0, 6, 0, 5000);
return 1;
}
public OnFilterScriptExit()
{
print("Beagle Flyer Unloaded.");
return 1;
}
#else
#endif
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Beagle", true))
{
PutPlayerInVehicle(playerid, Beagle, 0);
}
return 1;
}
return 1;
}
Re: [Help] RP server NPC -
matrix_smq - 10.02.2010
Just add at the login public
pawn Код:
If(IsPlayerNPC(playerid)) return 1;
Re: [Help] RP server NPC -
Ricop522 - 10.02.2010
Quote:
Originally Posted by matrix_smq
Just add at the login public
pawn Код:
If(IsPlayerNPC(playerid)) return 1;
|
not work