19.03.2010, 09:58
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?
TogglePlayerControlable(playerid,0);
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?
|
dini_IntSet(udb_encode(yourfilename), "freeze", 0);
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);