So im trying to create a command amx_friendlyfire to change the value of mp_friendlyfire
PHP Code:
public cmdFriendlyfire(id)
{
new arg[2];
read_argv(1, arg, sizeof(arg));
server_cmd("mp_friendlyfire %s", arg);
console_print(id, "mp_friendlyfire changed to %s.", arg);
return PLUGIN_HANDLED;
}
This works fine if i use 1 or 0 but if i try 0.25 it juts does 0... BTW i tried using str_to_float and %f... so don't say its because its a int...
****face-palm****** arg[2] HAHAHAHAHA Look don't laugh at me......... I'm tired...