Carpark kills. - 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: Carpark kills. (
/showthread.php?tid=67312)
Carpark kills. -
Calgon - 28.02.2009
..........................
Re: Carpark kills. -
JaYmE - 28.02.2009
This should work just add them to your code
pawn Код:
#define blue 0x0000ffff
new Admin[MAX_PLAYERS];
stock SendMessageToAdmins(String[]) {
for ( new i = 0; i < MAX_PLAYERS; i++ ) {
if ( Admin[i] > 0 ) {
SendClientMessage(i, blue, String);
}
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason) {
if ( reason == 49 ) {
new kstring[128],
kickname[MAX_PLAYER_NAME],
String[50];
if ( IsPlayerConnected(killerid) ) {
GetPlayerName(killerid, kickname, sizeof(kickname));
format(String, 256, "AdmWarning: [%d] %s has just carparked killerd a player.", killerid, kickname);
SendMessageToAdmins(String);
printf("%s", kstring);
}
}
return 1;
}
Re: Carpark kills. -
Calgon - 28.02.2009
Doesn't work, but thanks for suggesting it.
Re: Carpark kills. -
brett7 - 28.02.2009
Quote:
Originally Posted by Calgon
Doesn't work, but thanks for suggesting it.
|
what doesn't work is it the send message to admins?
Re: Carpark kills. -
JaYmE - 01.03.2009
i used that stock in some of my scripts ( it works )
i have tested this code ( it works )
if it does not work then your death id part must be wrong
oh and next time dont just say it does not work, post the reason why
Edit: P.S: reason 49 meens hit by a car not carpark killed