23.01.2017, 17:42
PHP код:
CMD:setvalue(playerid,params[])
{
new value, weaponid,string[200];
if(sscanf(params, "dk<weapon>", value, weaponid)) return SendClientMessage(playerid,0xFF0000F,"USAGE: /setvalue [Value] [WeaponName]"); // You need to put integer at first, and you can use sscanf kustom specifier to get weaponid by name
if(weaponid == 24)
{
Deagle = value;
format(string,sizeof(string),"Succeffly setted Deagle value to %d",value);
SendClientMessage(playerid,0xFF0000F,string);
}
return 1;
}