Why OnPlayerSpawn ...
#1

Don't work in Filterscript ? Because i use it in Gamemode ?
Reply
#2

It does work in filterscripts
Reply
#3

No , it isn't ...
Reply
#4

Yes it does :S if it doesnt then you did something wrong.

/Artix
Reply
#5

be sure that in all your other filterscript or your gamemode you dont return 0; or not returning anything...

basicly open all your loaded filterscript and be sure you return 1; in all the onplayerspawn
Reply
#6

Quote:
Originally Posted by snoob
be sure that in all your other filterscript or your gamemode you dont return 0; or not returning anything...

basicly open all your loaded filterscript and be sure you return 1; in all the onplayerspawn
lol , thanks , it worked
Reply
#7

But , can somebady tell me why i really need to 'return true' at final of a callback?
Reply
#8

Quote:
Originally Posted by Angel φ
But , can somebady tell me why i really need to 'return true' at final of a callback?
Because the callbacks are firstly called in gamemode ... and then in filterscripts. But if you "return false", it does not continue - does not call the callbacks in filterscripts.
Reply
#9

so , if i don't return anything at the end of a callback in a filterscript , it automatcly return 0; ?
Reply
#10

Quote:
Originally Posted by Angel φ
But , can somebady tell me why i really need to 'return true' at final of a callback?
returning a value is the name of the game...

when you return 0; at a callback it usuly stop the execution

like if you return 0 at onplayerrequestspawn it will not spawn
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)