SA-MP Forums Archive
Help plox... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help plox... (/showthread.php?tid=99440)



Help plox... - HotSauce - 27.09.2009

Deleted..........


Re: Help plox... - Klutty - 27.09.2009

Show us your OnPlayerDeath code


Re: Help plox... - kujox4 - 27.09.2009

Do you have any Fs's?


Re: Help plox... - HotSauce - 27.09.2009

Quote:
Originally Posted by kujox4
Do you have any Fs's?
Yeah I got filter Script's



Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new name[MAX_PLAYER_NAME];
	new string[256];
	//new dmessage[128];
	//new deathreason[20];
	new playercash;
	new victimteam;
	new Float:px,Float:py,Float:pz;
	new killerteam;

	victimteam = gTeam[playerid];
	killerteam = gTeam[killerid];
	gPlayerSpawned[playerid] = 0;
	PlayerInfo[playerid][pInvWeapon] = 0;
 	PlayerInfo[playerid][pInvAmmo] = 0;
	GetPlayerName(playerid, name, sizeof(name));
	PlayerInfo[playerid][pLocal] = 255;
	GetPlayerPos(playerid, px, py, pz);
	if(killerid != 255)
	{
		if(GetPlayerState(killerid) == 2)
		{
		  if(ProxDetectorS(20, killerid, playerid))
		  {
		    if(!IsPlayerInAnyVehicle(playerid))
		    {
					if(PlayerInfo[killerid][pMember] == 1||PlayerInfo[killerid][pLeader] == 1||PlayerInfo[killerid][pMember] == 2||PlayerInfo[killerid][pLeader] ==2)
		  		{
		  		  SendClientMessage(killerid, COLOR_YELLOW, "That was a drive-by kill. Don't abuse it.");
						return 1;
					}
					SetPlayerCriminal(killerid,255,"Manslaughter");
					SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
					return 1;
				}
			}
		}
	}



Re: Help plox... - kujox4 - 30.09.2009

Any Gate FS's? Cause it might be due to your Filter Scripts. Cause I had that problem due to to many CreateObjects.