RAPED text
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

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;
}
Reply
#5

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
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)