how to add this feature
#1

hey

anyone know how to add this feature

example

Noob has Killed you from 150 Meters

how to get this meters?

any tutorials?
Reply
#2

Idk if it's possible maybe it is.
Reply
#3

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != playerid)
    {
        new 
killername[MAX_PLAYER_NAME],Float:X,Float:Y,Float:Z;
        
GetPlayerName(killerid,killername,sizeof(killername));
        
GetPlayerPos(killerid,X,Y,Z);
        new 
FloatfDistance GetPlayerDistanceFromPoint(playeridX,Y,Z), szMessage[128];
        
format(szMessagesizeof(szMessage), "%s has Killed you from %0.2f Meters",killernamefDistance);
        
SendClientMessage(playerid0xA9C4E4FFszMessage);
    }
    return 
1;

Reply
#4

i got this two errors

pawn Код:
C:\Users\Ryz\Desktop\codww2.pwn(5303) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Users\Ryz\Desktop\codww2.pwn(5561) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Reply
#5

but script is works .thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)