Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: NeskWriter on September 13, 2014, 01:48:01 pm

Title: GetPlayerNameFromID
Post by: NeskWriter on September 13, 2014, 01:48:01 pm
Hey scripters, In short, this function returns player name from the ID, what might be useful.
Code: [Select]
stock GetPlayerNameFromID(playerid)
{
new str[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "%s", pname);
return str;
}
Title: Re: GetPlayerNameFromID
Post by: sseebbyy on September 13, 2014, 02:25:54 pm
Start to script for 0.4 ...
Title: Re: GetPlayerNameFromID
Post by: ysc123 on September 13, 2014, 06:32:20 pm
in Squirrel

function GetPlayerNameFromID(id)
{
   return FindPlayer(id).Name
}
Title: Re: GetPlayerNameFromID
Post by: Honey. on September 14, 2014, 06:44:11 am
Start to script for 0.4 ...
Title: Re: GetPlayerNameFromID
Post by: NeskWriter on September 14, 2014, 01:03:27 pm
Start to script for 0.4 ...

I'm not sure if I'm blind but...where do I download 0.4 client and the server?
Title: Re: GetPlayerNameFromID
Post by: Honey. on September 14, 2014, 03:21:33 pm
Lol!

There is a whole board made for 0.4 at this forum.Check out the following topics :

http://forum.vicecitymultiplayer.com/index.php?topic=6855.0
http://forum.vicecitymultiplayer.com/index.php?topic=6856.0
http://forum.vicecitymultiplayer.com/index.php?topic=6854.0
Title: Re: GetPlayerNameFromID
Post by: NeskWriter on September 14, 2014, 03:24:13 pm
Lol!

There is a whole board made for 0.4 at this forum.Check out the following topics :

http://forum.vicecitymultiplayer.com/index.php?topic=6855.0
http://forum.vicecitymultiplayer.com/index.php?topic=6856.0
http://forum.vicecitymultiplayer.com/index.php?topic=6854.0



Holy...so much trash to read