| Blockland Forums > Modification Help |
| Admin Only Vehicle |
| (1/7) > >> |
| thaky:
Hey guys especially space guy (who is very helpful at times). Would this work for a vehicle: --- Code: ---function lightTankVehicle::onMount(%this,%client) { if(%client.isAdmin || %client.isSuperAdmin) { return; } else { %client.unmount } } --- End code --- |
| thaky:
Is any one gonna help me? |
| Tyler66:
Correct me if I am wrong, because im not a perfect scripter; But if the user trys to mount the vehicle without admin he cannot mount the vehicle. The user is not mounted on anything we try to unmount the user when hes not mounted in a vehicle? |
| thaky:
No if he's not admin he unmounts but if he is he mounts. |
| takato14:
How about just try it and see what happens rather than asking whether it would work or not. |
| Navigation |
| Message Index |
| Next page |