01.02.2018, 19:06
(
Последний раз редактировалось Fratello; 03.02.2018 в 19:33.
)
Quote:
you can use this if u want to define names by yourself.
PHP код:
|
PHP код:
GetWeaponNameEx(weaponid)
{
new w_name[16];
switch(weaponid)
{
case 0: w_name = "Fist";
case 24: w_name = "Deagle";
case 31: w_name = "M4";
case 30: w_name = "AK-47";
}
return w_name;
}
https://sampforum.blast.hk/showthread.php?tid=570635
Quote:
Thanks for the advice, so I had the code (by switch), I had to use formats to establish the cells of each name!
|
PHP код:
GetWeaponNameEx(weaponid)
{
new w_name[16];
switch(weaponid)
{
case 0: format(w_name, sizeof w_name, "Fist");
case 24: format(w_name, sizeof w_name, "Deagle");
case 31: format(w_name, sizeof w_name, "M4");
case 30: format(w_name, sizeof w_name, "AK-47");
}
return w_name;
}