09.03.2010, 14:56
Are you able to stop writing in big red large text?
If your servers kicks if you don't login after a while, you could use:
So if your login system REQUIRES login, I'm assuming you're using a timer, under the function that the timer is calling, add the above code, the code basicly checks if the player isn't an NPC.
returns 1 if the player IS an NPC, we are adding:
infront of
the ! basicly means "Not" in PAWN code.
So we're checking if the player's NOT an NPC, and if the function returns 1 (the player isn't an NPC) It will continue with the kick.
and if the player's IS an NPC, it will not kick.
If it isn't an NPC, then carry on with the code.
If your servers kicks if you don't login after a while, you could use:
Код:
// Blah blah code here if(!IsPlayerNPC(playerid)) { // Code Here, this part is if the player -IS NOT- an NPC. } return 1; // Blah blah code here
Код:
IsPlayerNPC
Код:
!
Код:
IsPlayerNPC
So we're checking if the player's NOT an NPC, and if the function returns 1 (the player isn't an NPC) It will continue with the kick.
and if the player's IS an NPC, it will not kick.
If it isn't an NPC, then carry on with the code.