#1

ok, this problem is annoynin' me..

If doin check with if( IsPlayerNPC( playerid ) ) return false; the NPC connects, but I can't see him ingame.. If I return true - NPC connects, and disconnects after ~5secs. maxnpc - 5.. no pssw.
Reply
#2

OnPlayerSpawn:
pawn Код:
if(!IsPlayerNPC(playerid)) return 1;
Reply
#3

Aha, there is a lot of another script for normal players..
Reply
#4

Quote:
Originally Posted by Clive
Посмотреть сообщение
OnPlayerSpawn:
pawn Код:
if(!IsPlayerNPC(playerid)) return 1;
OnPlayerConnect and OnPlayerSpawn:

pawn Код:
if(IsPlayerNPC(playerid)) return 1;
Reply
#5

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
OnPlayerConnect and OnPlayerSpawn:

pawn Код:
if(IsPlayerNPC(playerid)) return 1;
already done
Reply
#6

You are returning FALSE in OnPlayerRequestSpawn for NPCs? Use return true in OnPlayerRequestClass, because false prevents player from spawning, and 1 lets the player to spawn.
Reply
#7

Im returning true in almost all callbacks..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)