E causaria um efeito nesse "alguem" Apуs levar o tiro. |
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
if(weaponid == 23)
{
SendClientMessage(damagedid, 0xFF0000FF, "Vocк levou um tiro de pistola com silenciador !");
}
return 1;
}
~public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
if(weaponid == 23)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Vocк foi acertado por um tranquilizante de %s e ficou inconsciente por 20 Segundos.", PlayerName(playerid));
SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 3000);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Vocк acertou o tranquilizante em %s .", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GameTextForPlayer(suspect, "~r~Tranquilizado", 2500, 3);
Controle(suspect, 0);
ApplyAnimation(suspect, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
PlayerCuffed[suspect] = 1;
PlayerCuffedTime[suspect] = 20;
}
}
return 1;
}
C:\Users\user\Documents\Tiago\Game Modes e FS\Brasil Revolution Life 1.0\Brasil Revolution Life 1.0\gamemodes\brl.pwn(70620) : error 017: undefined symbol "suspect"
C:\Users\user\Documents\Tiago\Game Modes e FS\Brasil Revolution Life 1.0\Brasil Revolution Life 1.0\gamemodes\brl.pwn(70620) : error 017: undefined symbol "giveplayer"
C:\Users\user\Documents\Tiago\Game Modes e FS\Brasil Revolution Life 1.0\Brasil Revolution Life 1.0\gamemodes\brl.pwn(70620) : error 029: invalid expression, assumed zero
C:\Users\user\Documents\Tiago\Game Modes e FS\Brasil Revolution Life 1.0\Brasil Revolution Life 1.0\gamemodes\brl.pwn(70620) : fatal error 107: too many error messages on one line
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
if(weaponid == 23) {
if(IsPlayerConnected(playerid)) {
static
giveplayer[MAX_PLAYER_NAME],
stringt[128],
sender[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, sender, sizeof(sender));
format(stringt, sizeof(stringt), "* Vocк foi acertado por um tranquilizante de %s e ficou inconsciente por 20 Segundos.", sender);
SendClientMessage(damagedid, 0xFF0000FF, stringt);
SetPlayerDrunkLevel(playerid, GetPlayerDrunkLevel(playerid) + 3000);
GetPlayerName(damagedid, giveplayer, sizeof(giveplayer));
format(stringt, sizeof(stringt), "* Vocк acertou o tranquilizante em %s .", giveplayer);
SendClientMessage(playerid, 0xFF0000FF, stringt);
GameTextForPlayer(damagedid, "~r~Tranquilizado", 2500, 3);
Controle(damagedid, 0);
ApplyAnimation(damagedid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
PlayerCuffed[damagedid] = 1;
PlayerCuffedTime[damagedid] = 20;
}
}
return 1;
}
pawn Код:
|
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
if(weaponid == 23) {
if(IsPlayerConnected(playerid)) {
static
giveplayer[MAX_PLAYER_NAME],
stringt[128],
sender[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, sender, sizeof(sender));
format(stringt, sizeof(stringt), "* Vocк foi acertado por um tranquilizante de %s e ficou inconsciente por 20 Segundos.", sender);
SendClientMessage(damagedid, 0xFF0000FF, stringt);
SetPlayerDrunkLevel(damagedid, GetPlayerDrunkLevel(damagedid) + 3000);
GetPlayerName(damagedid, giveplayer, sizeof(giveplayer));
format(stringt, sizeof(stringt), "* Vocк acertou o tranquilizante em %s .", giveplayer);
SendClientMessage(playerid, 0xFF0000FF, stringt);
GameTextForPlayer(damagedid, "~r~Tranquilizado", 2500, 3);
Controle(damagedid, 0);
ApplyAnimation(damagedid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
PlayerCuffed[damagedid] = 1;
PlayerCuffedTime[damagedid] = 20;
}
}
return 1;
}