26.08.2014, 07:28
In your commands put
CMD:buydrink(){
//check if player is near a sprunk vending machine "1.0" or closer.
// then set drunk level to 10
}
Or
Use this under OnPlayerKeyStateChange() {
if(newkeys & KEY_ACTION)
{
//check if they use the key "KEY_ACTION"
// then check if there near sprunk machine
// then set drunk level to 10
}
}
Sorry this is the best I can do as I using a phone
CMD:buydrink(){
//check if player is near a sprunk vending machine "1.0" or closer.
// then set drunk level to 10
}
Or
Use this under OnPlayerKeyStateChange() {
if(newkeys & KEY_ACTION)
{
//check if they use the key "KEY_ACTION"
// then check if there near sprunk machine
// then set drunk level to 10
}
}
Sorry this is the best I can do as I using a phone