Problem|NPC
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

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

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...
Reply
#6

Help Please
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)