13.01.2016, 11:32
Try this
Код:
COMMAND:setgravity(playerid, params[]) { new gravity; if(level[playerid] >= 4) { if(sscanf(params, "d", gravity)) return SendClientMessage(playerid, COLOR_RED, "Usage: /setgravity [50 to -50]"); else if(gravity > 50 || gravity < -50) { { SetGravity(gravity*0.008); SendClientMessage(playerid, COLOR_GREEN, "Gravity has been changed"); } } else return SendClientMessage(playerid, COLOR_RED, "ERROR : Gravity cant be above 50 or under -50!"); } else return SendClientMessage(playerid, COLOR_RED, "ERROR : You have to be Administrator level 4 to use this command!"); return 1; }