Stopping the player moving
#1

I've just got owned vehicles working, but it would be a lot better if I added an engine feature, so I'm trying to work on it, but I'm finding it hard to stop the player moving. Any tips?
Reply
#2

pawn Код:
TogglePlayerControlable(playerid,0);
Reply
#3

Thanks. I've got registration and login working (via dini), can you help me make it save when they log out?
Reply
#4

Quote:
Originally Posted by jameskmonger
Thanks. I've got registration and login working (via dini), can you help me make it save when they log out?
on register command
Код:
dini_IntSet(udb_encode(yourfilename), "freeze", 0);
pawn Код:
your start engine command
dini_IntSet(udb_encode(yourfilename), "freeze", 1);
your stop engine command
dini_IntSet(udb_encode(yourfilename), "freeze", 0);
//where you want to stop the engine if its stopped
if(dini_IntGet(udb_encode(yourfilename), "freeze") == 0) TogglePlayerControlable(playerid,0);
Try to make something like this
Reply
#5

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)