[Ajuda] Duvida
#1

Bom Tarde galera bom eu queria saber como vejo os danos das armas no game mode Tiro se a minigun tira 100% de dano a onde vejo a quantidade de dano para diminuir os danos da arma.
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage

e utilize getplayerweapon para o issuerid e setplayerhealth(playerid, GetPlayerHealth(playerid, health)-dano);

*dano = vocк altera para o dano desejado!

exemplo:


Код:
if(GetPlayerWeapon(issuerid) == 38)//MINIGUN
{
      new Float:health;
      SetPlayerHealth(playerid, GetPlayerHealth(playerid, health)-dano);
      return 1;
}
Reply
#3

PHP код:
dcmd_vervida(playerid, params[])
{
new 
tmp[256], idx, string[128];
tmp = strtok(params, idx);
new 
id;
if(!
IsNumeric(tmp))
id = ReturnPlayerID(tmp);
else
id = strval(tmp);
if(
Player[playerid][pAdmin] < 1)
return 
SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para usar este comando!");
if(!
strlen(tmp))
return 
SendClientMessage(playerid, COR_USOCORRETO, "Uso: /vervida [id]");
new 
Float:health;
GetPlayerHealth(id,health);
format(string, sizeof(string), "Vida do Player %s: %.1f", id, health);
SendClientMessage(playerid, 0xE3E3E3FF,string);
return 
1;
} 
Reply
#4

Quote:
Originally Posted by Rato22
Посмотреть сообщение
PHP код:
dcmd_vervida(playerid, params[])
{
new 
tmp[256], idx, string[128];
tmp = strtok(params, idx);
new 
id;
if(!
IsNumeric(tmp))
id = ReturnPlayerID(tmp);
else
id = strval(tmp);
if(
Player[playerid][pAdmin] < 1)
return 
SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para usar este comando!");
if(!
strlen(tmp))
return 
SendClientMessage(playerid, COR_USOCORRETO, "Uso: /vervida [id]");
new 
Float:health;
GetPlayerHealth(id,health);
format(string, sizeof(string), "Vida do Player %s: %.1f", id, health);
SendClientMessage(playerid, 0xE3E3E3FF,string);
return 
1;
} 
ele pediu pra como altera o valor do dano sa arma...
Reply
#5

+rep pros 2
Reply
#6

Quote:
Originally Posted by HoodScript
Посмотреть сообщение
ele pediu pra como altera o valor do dano sa arma...
Esse comando era pro outro post kk.
Reply
#7

Quote:
Originally Posted by Rato22
Посмотреть сообщение
PHP код:
dcmd_vervida(playerid, params[])
{
new 
tmp[256], idx, string[128];
tmp = strtok(params, idx);
new 
id;
if(!
IsNumeric(tmp))
id = ReturnPlayerID(tmp);
else
id = strval(tmp);
if(
Player[playerid][pAdmin] < 1)
return 
SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para usar este comando!");
if(!
strlen(tmp))
return 
SendClientMessage(playerid, COR_USOCORRETO, "Uso: /vervida [id]");
new 
Float:health;
GetPlayerHealth(id,health);
format(string, sizeof(string), "Vida do Player %s: %.1f", id, health);
SendClientMessage(playerid, 0xE3E3E3FF,string);
return 
1;
} 
Quote:
Originally Posted by HoodScript
Посмотреть сообщение
ele pediu pra como altera o valor do dano sa arma...
Quote:
Originally Posted by Rato22
Посмотреть сообщение
Esse comando era pro outro post kk.
kkk quero ver o sistema q vc falou q ia posta la na sua pag '-'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)