Setting Gravity With Gforces
#2

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;
}
Reply


Messages In This Thread
Setting Gravity With Gforces - by SupperRobin6394 - 13.01.2016, 10:47
Re: Setting Gravity With Gforces - by rambalili2 - 13.01.2016, 11:32

Forum Jump:


Users browsing this thread: 1 Guest(s)