15.10.2013, 11:49
Quote:
Hey guys, Please anyone can give me a /rape command like when you be near a player you do /rape you rape the player, doing /rape without specifing ID of player. I need this command for my CNR server
|
Sure that in command to get closed player id you can use specific distance like:
pawn Код:
GetPlayerPos(playerid,x,y,z);
if(IsPlayerInRangeOfPoint(Tplayer,6.0,x,y,z)){
SendClientMessage(Tplayer, COLOR_RED,"You have been raped!"); //send message to Tplayer(target)
SendClientMessage(playerid, COLOR_RED,"You have raped target player"); // send message to playerid (user)
// code
}else{
SendClientMessage(playerid, COLOR_RED,"No one is close enough.");// similarly
}