Need Help With Death Window - 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: Need Help With Death Window (
/showthread.php?tid=147481)
Need Help With Death Window -
Chilliad - 12.05.2010
Well i have seen many Stunt Servers with these entering msg:
Can Some one give me the code

!!!
Re: Need Help With Death Window -
Andy_McKinley - 12.05.2010
You need to use
Re: Need Help With Death Window -
Chilliad - 12.05.2010
Quote:
Originally Posted by DarkPhoenix
|
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!!
Re: Need Help With Death Window -
Jay. - 12.05.2010
Quote:
Originally Posted by ChillaX
Quote:
Originally Posted by DarkPhoenix
|
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
Re: Need Help With Death Window -
Zimon95 - 12.05.2010
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);
}
Re: Need Help With Death Window -
Chilliad - 13.05.2010
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