15.09.2013, 11:12
it was alright from 3 month, just facing that problem from 2 days, compiled and no error, is that due to samp update came??
Quote:
|
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { // anti-team-attack if(gTeam[issuerid] == TEAM_USA && gTeam[playerid] == TEAM_USA && EDM[playerid] == 0) { GameTextForPlayer(issuerid,"~r~do not team attack!", 3000, 3); } if(gTeam[issuerid] == TEAM_EURASIA && gTeam[playerid] == TEAM_EURASIA && EDM[playerid] == 0) { GameTextForPlayer(issuerid,"~r~do not team attack!", 3000, 3); } if(gTeam[issuerid] == TEAM_ARAB && gTeam[playerid] == TEAM_ARAB && EDM[playerid] == 0) { GameTextForPlayer(issuerid,"~r~do not team attack!", 3000, 3); } if(gTeam[issuerid] == TEAM_SOVIET && gTeam[playerid] == TEAM_SOVIET && EDM[playerid] == 0) { GameTextForPlayer(issuerid,"~r~do not team attack!", 3000, 3); } if(gTeam[issuerid] == TEAM_AUS && gTeam[playerid] == TEAM_AUS && EDM[playerid] == 0) { GameTextForPlayer(issuerid,"~r~do not team attack!", 3000, 3); } // anti team knifing if(gTeam[issuerid] == TEAM_USA && gTeam[playerid] == TEAM_USA && weaponid == 4) { GameTextForPlayer(issuerid,"~g~do not knife~n~team mates", 3000, 3); GameTextForPlayer(playerid,"~g~you got team knifed~n~use /sync", 3000, 3); SetPlayerHealth(issuerid, 0); } if(gTeam[issuerid] == TEAM_EURASIA && gTeam[playerid] == TEAM_EURASIA && weaponid == 4) { GameTextForPlayer(issuerid,"~g~do not knife~n~team mates", 3000, 3); GameTextForPlayer(playerid,"~g~you got team knifed~n~use /sync", 3000, 3); SetPlayerHealth(issuerid, 0); } if(gTeam[issuerid] == TEAM_ARAB && gTeam[playerid] == TEAM_ARAB && weaponid == 4) { GameTextForPlayer(issuerid,"~g~do not knife~n~team mates", 3000, 3); GameTextForPlayer(playerid,"~g~you got team knifed~n~use /sync", 3000, 3); SetPlayerHealth(issuerid, 0); } if(gTeam[issuerid] == TEAM_SOVIET && gTeam[playerid] == TEAM_SOVIET && weaponid == 4) { GameTextForPlayer(issuerid,"~g~do not knife~n~team mates", 3000, 3); GameTextForPlayer(playerid,"~g~you got team knifed~n~use /sync", 3000, 3); SetPlayerHealth(issuerid, 0); } if(gTeam[issuerid] == TEAM_AUS && gTeam[playerid] == TEAM_AUS && weaponid == 4) { GameTextForPlayer(issuerid,"~g~do not knife~n~team mates", 3000, 3); GameTextForPlayer(playerid,"~g~you got team knifed~n~use /sync", 3000, 3); SetPlayerHealth(issuerid, 0); } if(issuerid != INVALID_PLAYER_ID) { new str[26]; format(str, sizeof(str),"-%.0f", amount); SetPlayerChatBubble(playerid, str, 0xFF0000FF, 100.0, 2000); PlayerPlaySound(issuerid,17802,0.0,0.0,0.0); } // admin anti-slap new Float , Float:y, Float:z;new Float:gX, Float:gY, Float:gZ; GetPlayerPos(issuerid, gX, gY, gZ); if(PlayerInfo[issuerid][OnDuty] == 0 && PlayerInfo[playerid][OnDuty] == 1 && IsPlayerInRangeOfPoint(playerid, 35.5, gX, gY, gZ) && GetPlayerState(issuerid) == PLAYER_STATE_ONFOOT) { SetPlayerHealth(playerid, 100000000.0); GameTextForPlayer(issuerid,"~p~warning!~n~~w~do not attack~n~~w~on duty admins~n~~p~stop that!", 3000, 3); GetPlayerPos(issuerid,x,y,z); SetPlayerPos(issuerid,x,y,z+13); } if(PlayerInfo[playerid][OnDuty] == 1) { SetPlayerHealth(playerid, 100000000.0); } return 1; } |


, Float:y, Float:z;