SA-MP Forums Archive
Problem|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: Problem|NPC (/showthread.php?tid=104304)



Problem|NPC - orking990 - 23.10.2009

I make NPC and now i want the NPC can login.
So i do at all the public's have to login.
And that not work...
I write it:
Код:
if(IsPlayerNPC(playerid)) return 1;
And that now work...
Where i have to use it?
At the /login,/register' where?
Help please.


Re: Problem|NPC - Damn Right M.I.A! - 23.10.2009

pawn Код:
if(command == "/register") //this is not real, you will understand it.
{
if(IsPlayerNPC(playerid))
{
return 1;
} else {
//your login command code goes here
}
return 1;
}
edit
I forgot this won't work.


Re: Problem|NPC - orking990 - 23.10.2009

Quote:
Originally Posted by Damn Right M.I.A!
pawn Код:
if(command == "/register") //this is not real, you will understand it.
{
if(IsPlayerNPC(playerid))
{
return 1;
} else {
//your login command code goes here
}
return 1;
}

Dont work...
Help please... S:
edit
I forgot this won't work.



Re: Problem|NPC - _Vortex - 23.10.2009

When they connect make LoggedIn or what ever you have it as set to 1.


Re: Problem|NPC - orking990 - 24.10.2009

Quote:
Originally Posted by [B
Vortex ]
When they connect make LoggedIn or what ever you have it as set to 1.
Not work...
More help please...


Re: Problem|NPC - orking990 - 25.10.2009

Help Please


Re: Problem|NPC - AG Adam - 25.10.2009

Use that in:
• OnPlayerConnect
• OnPlayerSpawn
• OnPlayerRequestSpawn
And if you are using some anticheats, try these:
• OnPlayerRequestClass
• OnPlayerDeath
And for the anticheat: Use that for every player scanning, on die.......

Sorry for my bad english.