SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 05/02/2010, 06:15 PM   #1
Daniel_June
Little Clucker
 
Join Date: Oct 2009
Posts: 42
Reputation: 0
Default Very easy!

Hey man.
I tried out doing a thing that comes up, so admin can see when people kill eachother.
Example: (Player) killed (Player) - (Weapon)
Daniel_June is offline  
Old 05/02/2010, 06:17 PM   #2
CrucixTM
Huge Clucker
 
CrucixTM's Avatar
 
Join Date: Jan 2010
Location: Denmark
Posts: 293
Reputation: 7
Default Re: Very easy!

You wanna know how to do this or what?

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid, playerid, reason);
}
__________________
Experienced mapper - Mapping anything for as low as 1 Euro(€)! - PM me if you need something mapped properly!
CrucixTM is offline  
Old 05/02/2010, 07:04 PM   #3
Daniel_June
Little Clucker
 
Join Date: Oct 2009
Posts: 42
Reputation: 0
Default Re: Very easy!

So only admins can see it?
Daniel_June is offline  
Old 05/02/2010, 07:16 PM   #4
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,488
Reputation: 256
Default Re: Very easy!

You can't use SendDeathMessage for admins only. You can make a client message for that.
MadeMan is offline  
Old 05/02/2010, 07:16 PM   #5
Mike Garber
Banned
 
Join Date: Feb 2008
Location: Sweden
Posts: 1,506
Reputation: 6
Default Re: Very easy!

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerAdmin(i)){
SendDeathMessage(killerid, playerid, reason);
}}
return 1;
}


Untested though.
Mike Garber 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
Need an Easy Fs MarcoNecroX Help Archive 10 10/04/2010 07:03 PM
[Easy] Need help GrilloBR Help Archive 1 19/10/2009 02:17 AM
help plz -easy- Sal_Kings Server Support 12 13/04/2009 01:16 AM
Easy help.. anyone? Shellegg Help Archive 4 19/03/2009 12:12 AM
Very easy but i don't know :S harrold Help Archive 10 27/02/2009 08:35 PM


All times are GMT. The time now is 09:24 PM.


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