07.02.2009, 18:24
hey i wanted to create a anti dm but its not working
Код:
#define TEAM_COPS 2 #define TEAM_ORANGE 4 new killer3[30]; new lozer[128]; if(GetPlayerTeam(playerid) != 4 && GetPlayerTeam(playerid) != 2 && GetPlayerTeam(killerid) != 4 && GetPlayerTeam(killerid) != 2) { if(dm[playerid] == 0) { SendClientMessage(killerid, COLOR_RED, " Stop DMing or you get a jail (first warning)"); dm[playerid] = 1; } if(dm[playerid] == 1) { PlayerInfo[killerid][pInt] = 3; SetPlayerInterior(killerid,3); SetPlayerPos(killerid,197.72,175.06,1003.02); ResetPlayerWeapons(killerid); jailed2[killerid] = 1; PlayerInfo[killerid][pJailed] = 1; SendClientMessage(killerid, COLOR_GRAD1," You have been jailed for deathmatching."); PlayJailSound(1153 , 1154, 2000,264.395200, 77.564040, 1001.039000); JailTime[killerid] = 120; GetPlayerName(killerid, killer3, 30); format(lozer, 128, "[ANTI-DM] %s has been auto jailed for deathmatching", killer3); SendClientMessageToAll(COLOR_RED, lozer); } }