Posts: 780
Threads: 58
Joined: Jan 2011
Reputation:
0
This code is wrongly defined, You must do that at OnPlayerSpawn callback, and SpawnPlayer OnPlayerConnect? I actually think too it would crash you, because if you spawn the player OnPlayerConnect who will put him in vehicle lol? Try it OnPlayerSpawn.
Posts: 1,239
Threads: 16
Joined: Mar 2011
Reputation:
0
Maybe under OnPlayerRequestSpawn?
Posts: 925
Threads: 36
Joined: Dec 2009
Reputation:
0
I did not got what you want from us.
Posts: 143
Threads: 17
Joined: Oct 2009
Reputation:
0
ok on player spawn lol sorry my bad this is what i got
if(IsPlayerNPC(playerid)) return 1;
Posts: 143
Threads: 17
Joined: Oct 2009
Reputation:
0
ok i changed this part of the npc code and they spawn now but seem to teleport around rather than walk
from this
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
to this
if(IsPlayerConnected(i) && !IsPlayerNPC(0))
seems to have worked maybe
Posts: 780
Threads: 58
Joined: Jan 2011
Reputation:
0
Do you even do at the right way?
If not, read kc's tutorial more carefully and you will get it.
Posts: 143
Threads: 17
Joined: Oct 2009
Reputation:
0
it was the anti cheat and yea it was turned off on requestclass so 0 turns it on if im not wrong idk im a newb
they are still teleporting around though lol
Posts: 1,426
Threads: 56
Joined: Dec 2010
Reputation:
0
But the main problem is fixed?