SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 24/12/2009, 08:03 PM   #1
Mechscape
Huge Clucker
 
Join Date: Sep 2009
Posts: 437
Reputation: 0
Default [SOLVED] 3 problem's! (1 problem still unsolved, but stopped solving.)

1 PROBLEM = SOLVED
---------------------------------------------------------------------------------------------------------------
2 PROBLEM = SOLVED
---------------------------------------------------------------------------------------------------------------
3 PROBLEM = SOLVED
Mechscape is offline  
Old 24/12/2009, 08:24 PM   #2
Puzi
Huge Clucker
 
Join Date: Mar 2009
Posts: 325
Reputation: 0
Default Re: [UNSOLVED] Need help, with 3 problem's.

You define a kill, adding a score by adding this under OnPlayerDeath:

Code:
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
So it would look like this for example:

Code:
public OnPlayerDeath(playerid, killerid, reason)

{
  SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
	SendDeathMessage(killerid, playerid, reason);
	GameTextForPlayer(playerid, "~r~Wasted!", 5, 2);
	SetPlayerColor(playerid,COLOR_GREY);
 	return 1;
}
~ UNTESTED ~

I ain't sure what you mean by the second question and either for third. Do you mean for third like it says on the right side PLAYER (WEAPON PICTURE) PLAYER2?

For example:
Code:
Puzi (Minigun) Tundmatu
If yes, it is scripted in SA-MP already so there is nothing for you to do to make it work. If you kill someone, it will just show up.

Thanks and Regards
Puzi
Puzi is offline  
Old 24/12/2009, 08:25 PM   #3
Mechscape
Huge Clucker
 
Join Date: Sep 2009
Posts: 437
Reputation: 0
Default Re: [UNSOLVED] Need help, with 3 problem's.

Quote:
Originally Posted by Puzi

For example:
Code:
Puzi (Minigun) Tundmatu
If yes, it is scripted in SA-MP already so there is nothing for you to do to make it work. If you kill someone, it will just show up.

Thanks and Regards
Puzi
Hmm, but that doens't show.
Mechscape is offline  
Old 24/12/2009, 08:31 PM   #4
Puzi
Huge Clucker
 
Join Date: Mar 2009
Posts: 325
Reputation: 0
Default Re: [UNSOLVED] Need help, with 3 problem's.

I was wrong, sorry.

You need this:

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
  SendDeathMessage(killerid, playerid, reason);
  return 1;
}
If you have pasted the code I gave you, it should work. If it does not, tell me.

Thanks and Regards
Puzi
Puzi is offline  
Old 24/12/2009, 08:32 PM   #5
Mechscape
Huge Clucker
 
Join Date: Sep 2009
Posts: 437
Reputation: 0
Default Re: [UNSOLVED] Need help, with 3 problem's.

Quote:
Originally Posted by Puzi
I was wrong, sorry.

You need this:

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
  SendDeathMessage(killerid, playerid, reason);
  return 1;
}
If you have pasted the code I gave you, it should work. If it does not, tell me.

Thanks and Regards
Puzi
I have it,

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
	PlayerInfo[killerid][pLevel] ++;
	PlayerInfo[killerid][pKills] ++;
	PlayerInfo[playerid][pDeaths] ++;
	SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
	SendDeathMessage(killerid, playerid, reason);
	return 1;
}
But still doens't work. I go more testing.
// Tested. Still doens't work.
Mechscape is offline  
Old 24/12/2009, 08:38 PM   #6
Puzi
Huge Clucker
 
Join Date: Mar 2009
Posts: 325
Reputation: 0
Default Re: [UNSOLVED] 3 problem's!

Do you have any errors with that code? Or a PAWN Compiler Library error?
Puzi is offline  
Old 24/12/2009, 08:39 PM   #7
Mechscape
Huge Clucker
 
Join Date: Sep 2009
Posts: 437
Reputation: 0
Default Re: [UNSOLVED] 3 problem's!

No. (Without error's and warning's)
Mechscape is offline  
Old 24/12/2009, 08:43 PM   #8
Puzi
Huge Clucker
 
Join Date: Mar 2009
Posts: 325
Reputation: 0
Default Re: [UNSOLVED] 3 problem's!

Hard for me to say to be honest...

http://wiki.sa-mp.com/wiki/SendDeathMessage

I'll try to look for a solution, but I can't guarantee for one, since I never had such a problem. Try removing the semi-colons after the pluses, I bet that will give you more errors, but if not, it might work. I don't see the problem so far...
Puzi is offline  
Old 24/12/2009, 08:46 PM   #9
Mechscape
Huge Clucker
 
Join Date: Sep 2009
Posts: 437
Reputation: 0
Default Re: [UNSOLVED] 3 problem's!

Ok, then stop solving. Thanks Puzi, for trying helping.
Mechscape is offline  
Old 24/12/2009, 08:47 PM   #10
Puzi
Huge Clucker
 
Join Date: Mar 2009
Posts: 325
Reputation: 0
Default Re: [SOLVED] 3 problem's! (1 problem still unsolved, but stopped solving.)

You're welcome. When I'll find a solution (if I ever do), I'll PM
Puzi is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unsolved Problem Timmi Server Support 2 09/03/2010 09:03 PM
New GameMode problem's Mechscape Help Archive 6 06/03/2010 05:33 AM
[Needs Solving :(] Entering a Car and Getting Kicked Out. Helpp Pleasee!!!!! Jawz Help Archive 24 26/02/2010 06:13 PM
Problem's Typhome Help Archive 4 06/04/2009 04:50 PM


All times are GMT. The time now is 02:49 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.