[Ajuda] Problemas no meu GM =(
#3

s4kul eu sou novato serб que vocк poderia ver pra mim?

Meu public OnPlayerDeath estб assim, como ficaria?

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	if(IsPlayerConnected(killerid))
	{
		PlayerInfo[killerid][pMatou]++;
		GivePlayerMoney(killerid, 100);
		Server[Kills] += 1;
	}


	if(killerid == INVALID_PLAYER_ID)
	{
    	SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
	}
	else
	{
		SendDeathMessage(killerid,playerid,reason);
   	}

   	ResetPlayerWeapons(playerid);
   	EmTrabalho[playerid] = 0;
	KitVip[playerid] = 0;
	PlayerEvento[playerid] = 0;
	Hospital[playerid] = 1;
	gSpectateID[playerid] = killerid;
	Rojao[playerid] = 0;

 	new Float:xPos,Float:yPos,Float:zPos;
	GetPlayerPos(playerid,xPos,yPos,zPos);

	if(gPlayerUsingLoopingAnim[playerid])
	{
        gPlayerUsingLoopingAnim[playerid] = 0;
        TextDrawHideForPlayer(playerid,txtAnimHelper);
	}

	if(IsPlayerInEvento[playerid])
	{
	    if(VeiculoEventoExiste[VeiculoEvento[playerid]])
	    {
	        DestroyVehicle(VeiculoEvento[playerid]);
		}
	    IsPlayerInEvento[playerid] = false;
	}

	if(IsPlayerInRangeOfPoint(killerid,25.0,xPos,yPos,zPos))
	{
		if(GetTickCount() - iFake[playerid] <= 2000)
		{
			++iKills[playerid];
			if(iKills[playerid] > 3)
			{
				iKills[playerid] = 0;
				CallLocalFunction("OnPlayerFakeKill","i",playerid);
			}
		}
	}
	iFake[playerid] = GetTickCount();
	GivePlayerMoney(playerid, -50);
	PlayerInfo[playerid][pMorreu]++;
	return 1;
}
Reply


Messages In This Thread
Problemas no meu GM =( - by GustavinCTN - 18.02.2014, 03:13
Re: Problemas no meu GM =( - by s4kuL - 18.02.2014, 04:31
Re: Problemas no meu GM =( - by GustavinCTN - 18.02.2014, 05:16
Re: Problemas no meu GM =( - by Wellington1999 - 18.02.2014, 11:05
Re: Problemas no meu GM =( - by GustavinCTN - 19.02.2014, 01:13

Forum Jump:


Users browsing this thread: 3 Guest(s)