SA-MP Forums Archive
RAPED text - 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: RAPED text (/showthread.php?tid=177860)



RAPED text - Face9000 - 19.09.2010

Someone know how to put the text in the main chat: "PLAYERNAME RAPED PLAYERNAME WITH WEAPON NAME" ?

If i kill someone,the text will show on chat


Re: RAPED text - playbox12 - 19.09.2010

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128];
format(string,sizeof(string),"%s raped %s with %s",playerid, killerid, reason);
SendClientToAllMessage(playerid,0xFFFFFFAA,string);
    return 1;
}
I have the feeling, I made a mistake, anyways try it. It fucked up my indendation, not that there is any to indent :P


Re: RAPED text - WillyP - 19.09.2010

Quote:
Originally Posted by playbox12
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128];
format(string,sizeof(string),"%s raped %s with %s",playerid, killerid, reason);
SendClientToAllMessage(playerid,0xFFFFFFAA,string);
    return 1;
}
I have the feeling, I made a mistake, anyways try it. It fucked up my indendation, not that there is any to indent :P
killerid and playerid are the wrong way round


Re: RAPED text - RoCK'N'Rolla - 19.09.2010

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128], KName[24], PName[24];
GetPlayerName(killerid, KName, 24);
GetPlayerName(playerid, PName, 24);
format(string,sizeof(string),"%s raped %s with %s",KName, PName, reason);
SendClientToAllMessage(playerid,0xFFFFFFAA,string);
    return 1;
}



Re: RAPED text - playbox12 - 19.09.2010

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
killerid and playerid are the wrong way round
Quote:
Originally Posted by RoCK'N'Rolla
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128], KName[24], PName[24];
GetPlayerName(killerid, KName, 24);
GetPlayerName(playerid, PName, 24);
format(string,sizeof(string),"%s raped %s with %s",KName, PName, reason);
SendClientToAllMessage(playerid,0xFFFFFFAA,string);
    return 1;
}
Thanks 'Victious' I just noticed it

And 'Rock'n'Rolla' thank you aswell. I am a little bit to sleepy, and made it to fast, thanks for correcting


Re: RAPED text - WillyP - 19.09.2010

Quote:
Originally Posted by playbox12
Посмотреть сообщение
Thanks 'Victious' I just noticed it

And 'Rock'n'Rolla' thank you aswell. I am a little bit to sleepy, and made it to fast, thanks for correcting
your welcome