19.02.2014, 19:36
Beta.pwn is all the gamemode
This is my OnPlayerTakeDamage , btw i use 0.3x
This is my OnPlayerTakeDamage , btw i use 0.3x
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new string[128];
if(gTeam[issuerid] == TEAM_COP || gTeam[issuerid] == TEAM_ARMYAIR || gTeam[playerid] == TEAM_ARMYLAND || gTeam[issuerid] == TEAM_CIA || gTeam[issuerid] == TEAM_SWAT)
{
if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMYAIR && gTeam[playerid] != TEAM_ARMYLAND && gTeam[playerid] != TEAM_CIA && gTeam[playerid] != TEAM_SWAT && IsTazed[playerid] == 0)
{
if(weaponid == 23)
{
format(string,sizeof(string),"Police officer %s(%d) has tazed %s(%d).",PlayerName(issuerid),issuerid,PlayerName(playerid),playerid);
SendClientMessageToAll(COLOR_DODGERBLUE,string);
GameTextForPlayer(playerid, "~b~TAZED~n~~w~FOR ~y~3~w~SECONDS", 3000, 5);
TogglePlayerControllable(playerid,0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.299999, 1, 1, 1, 0, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.299999, 1, 1, 1, 0, 0);
IsTazed[playerid] =3;
}
}
}
return 1;
}