Implementation of some SA:MP functions