how to put players name?
#1

like >>>>>>>>>>>>> WELCOME (PLAYERNAME) TO ***********
>>>>>>>>>>>>> (PLAYER NAME) HAS KILLED (DEADPERSON)
>>>>>>>>>>>>> (playername) has successfully DESTROYED THE BASE of b*** t***
Reply
#2

Use GetPlayerName
Reply
#3

pawn Код:
stock GetName(playerid)
{
    new pName[MAX_PLAYERS];
    GetPlayerName(playerid, pName, sizeof(pName));
    return pName;
}
GetName(id_of_the_player);

For example:
pawn Код:
// OnPlayerDeath
new str[128];
format(str, sizeof(str), "You have been killed by %s", GetName(killerid));
SendClientMessage(playerid, -1, str);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)