Need Help With Death Window
#1

Well i have seen many Stunt Servers with these entering msg:



Can Some one give me the code!!!
Reply
#2

You need to use
pawn Код:
SendDeathMessage
Reply
#3

Quote:
Originally Posted by DarkPhoenix
You need to use
pawn Код:
SendDeathMessage
Yea i know that code but what picture is those two?
i have when you connect, it shows your name and a AK-47, i want it to look like this!!
Reply
#4

Quote:
Originally Posted by ChillaX
Quote:
Originally Posted by DarkPhoenix
You need to use
pawn Код:
SendDeathMessage
Yea i know that code but what picture is those two?
i have when you connect, it shows your name and a AK-47, i want it to look like this!!
Hmm maybe ->
Код:
new playercash;
	if(killerid == INVALID_PLAYER_ID) {

    ResetPlayerMoney(playerid);
	} else {
	  	SendDeathMessage(killerid,playerid,reason);
			SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
			playercash = GetPlayerMoney(playerid);
			if (playercash > 0) {
				GivePlayerMoney(killerid, playercash);
				ResetPlayerMoney(playerid);
			}
			else
			{
			}
   	}
Put it under "OnPlayerDeath, But what you want is it to show a deathmessage of ak47's when u connect?



So put this under "OnPlayerConnect" SendDeathMessage(killerid, playerid, reason);



And get the reason here ->


https://sampwiki.blast.hk/wiki/Weapons
Reply
#5

Search, in Gamemodes section there's a topic called "Useful snippets"
pawn Код:
//Connect icon in DeathStats from ******
public OnPlayerConnect(playerid)
{
   SendDeathMessage(playerid, INVALID_PLAYER_ID, 200);
   return 1;
}

//Disconnect icon in DeathStats from ******
public OnPlayerDisconnect(playerid)
{
  SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
}
Reply
#6

Quote:
Originally Posted by Zimon95
Search, in Gamemodes section there's a topic called "Useful snippets"
pawn Код:
//Connect icon in DeathStats from ******
public OnPlayerConnect(playerid)
{
   SendDeathMessage(playerid, INVALID_PLAYER_ID, 200);
   return 1;
}

//Disconnect icon in DeathStats from ******
public OnPlayerDisconnect(playerid)
{
  SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
}
Im gonna try it out, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)