[NPC Poblem] The godfahter - 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: [NPC Poblem] The godfahter (
/showthread.php?tid=106971)
[NPC Poblem] The godfahter -
GforceNL - 07.11.2009
i Have a Question,
iam Using the godfather Gamemode but, i cant get npc's in it :S
Please Can Somebody help me..
Please no comments like: Dont use The godfather or something....
Re: [NPC Poblem] The godfahter -
MachineHead - 07.11.2009
Remove the registration system and the bots should work fine.
Re: [NPC Poblem] The godfahter -
GaGlets(R) - 07.11.2009
NPC's wouldn work if you have register/login script...
I supose that you can give npc's password and register it.
About 1h agou 1 man sent me this
Код:
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Here you put the name of the player", true))
{
OnPlayerLogin(playerid, "Here the encrypted password that you can find in the .ini file of the player");
}
try to do something with this
Re: [NPC Poblem] The godfahter -
gib_ - 07.11.2009
u can leave register system
at OnPlayerSpawn ... before it checks is player logged, put a return function for npc's
Re: [NPC Poblem] The godfahter -
Badger(new) - 07.11.2009
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))return 1;
//OTHER stuff
}
Re: [NPC Poblem] The godfahter -
XGh0stz - 07.11.2009
Quote:
|
Originally Posted by -The_Badger-
pawn Код:
public OnPlayerConnect(playerid) { if(IsPlayerNPC(playerid))return 1; //OTHER stuff }
|
This guy has the right idea, don't forget to do the same for OnPlayerSpawn if nessicary though
Re: [NPC Poblem] The godfahter -
GforceNL - 07.11.2009
Quote:
|
Originally Posted by XGh0stz
Quote:
|
Originally Posted by -The_Badger-
pawn Код:
public OnPlayerConnect(playerid) { if(IsPlayerNPC(playerid))return 1; //OTHER stuff }
|
This guy has the right idea, don't forget to do the same for OnPlayerSpawn if nessicary though
|
if(IsPlayerNPC(playerid))
}
PlayerSpawn or something??
{
return 1;
But what then?
Re: [NPC Poblem] The godfahter -
Badger(new) - 07.11.2009
That line makes it so if they are an NPC, OnPlayerConnect doesn't continue on with them. So they wont get messages saying "Hai welcomes to ma servair" etc.
Re: [NPC Poblem] The godfahter -
JakeB - 07.11.2009
Does it connect then get kicked straight away?
Re: [NPC Poblem] The godfahter -
GforceNL - 07.11.2009
Quote:
|
Originally Posted by GforceNL
Quote:
|
Originally Posted by XGh0stz
Quote:
|
Originally Posted by -The_Badger-
pawn Код:
public OnPlayerConnect(playerid) { if(IsPlayerNPC(playerid))return 1; //OTHER stuff }
|
This guy has the right idea, don't forget to do the same for OnPlayerSpawn if nessicary though
|
if(IsPlayerNPC(playerid))
{
PlayerSpawn or something??
}
return 1;
But what then?
|