26.03.2012, 23:41
Quote:
Dark , com esse OnPlayerTakeDamage , hб possibilidade de aumentar o dano de armamentos em Teleportes especificos ?
|
pawn Код:
#include a_samp
new LastTelerpot[MAX_PLAYERS][128];
public OnPlayerCommandText(playerid, cmdtext[])
{
format(LastTelerpot[playerid], 128,"%s", cmdtext); // topo do OnPlayerCommandText
return false;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(weaponid == ID_SNIPER &&
!strcmp(LastTelerpot[playerid], "/Sniper", true))
{
SetPlayerHealth(issuerid, 0);
}
return 0;
}