21.01.2015, 03:36
Код:
[22:09:21] [debug] #0 000181ac in ?? (0x0000ffff, 0x00000000, 0x00000000, 0x40c00000) from SVT_Real.amx [22:09:21] [debug] #1 0009f940 in ?? (0x00000017, 0x0000ffff, 0x42a50000, 0x00000033, 0x00000003) from SVT_Real.amx [22:09:21] [debug] #2 00008994 in public OnPlayerTakeDamage (0x00000017, 0x0000ffff, 0x42a50000, 0x00000033, 0x00000003) from SVT_Real.amx its my OnPlayerTakeDamage public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid,bodypart) { if( GetPlayerTeam(issuerid) == GetPlayerTeam(playerid)){GameTextForPlayer(issuerid, "~r~Team Killing ~y~ Not Allowed", 3000, 3);} if(GetPlayerTeam(issuerid) != GetPlayerTeam(playerid)&& pInfo[playerid][GodMode] == 0 && JustSpawned[playerid] == 0 && onduty[playerid] == 0){ if(issuerid != INVALID_PLAYER_ID && (weaponid == 23 || weaponid == 33 || weaponid == 34) && bodypart == 9) { new Float:Ax, Float:Ay, Float:Az; GetPlayerPos(playerid,Ax,Ay,Az); blood[playerid] = CreateDynamicObject(18668, Ax, Ay, Az-0.5,0.0,0.0,0.0); SetTimerEx("obblood", 5000, false, "fff", Ax, Ay, Az); SetPlayerHealth(playerid,0.0); SetPVarInt(playerid, "Headshotted", 1); GameTextForPlayer(playerid, "~r~Headshotted", 3000, 3); } else{ PlayerPlaySound(issuerid,17802,0.0,0.0,0.0); } return 1; } if(JustSpawned[playerid] == 1) { if(GetPlayerTeam(issuerid) != GetPlayerTeam(playerid)) { new Float:x, Float:y, Float:z; GetPlayerPos(issuerid, x, y, z); SetPlayerPos(issuerid,x,y,z+6); GameTextForPlayer(issuerid,"Don't Spawn Kill!",4000,4); } } return 1; } Whats Wrong with it?