Name And Not ID - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Name And Not ID (
/showthread.php?tid=81414)
Name And Not ID -
Kyle - 10.06.2009
How do i do this
So if a diffrent player enters your bought car it says this car belongs to (id)
I Want it so it says This Car Belongs To (Name)
Currently i have it saying your id and not name.
How do i do the Name and not id?
EDIT: And plus i need it to say the name even if there offline!
Re: Name And Not ID -
AiVAMAN - 10.06.2009
I didn't understand you much... but I think you need something like Vehicle names display??
Re: Name And Not ID -
BMUK - 10.06.2009
he means, someone buys a car and then if someone else gets in it says "sorry you cant drive this, it belongs to BMUK(2)"
Re: Name And Not ID -
lavamike - 10.06.2009
Well if you wanted cars stored permanently you would have to save their name to a file somewhere.
Otherwise:
pawn Код:
new PlayerName[24];
GetPlayerName(playerid, PlayerName, 24);
https://sampwiki.blast.hk/wiki/GetPlayerName
Re: Name And Not ID -
Kyle - 10.06.2009
How do i store it
Re: Name And Not ID -
Kyle - 10.06.2009
?
Re: Name And Not ID -
dice7 - 10.06.2009
pawn Код:
new name[24], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "This vehicle belongs to %s", name );
SendClientMessageToAll(0xFFFF00AA, string);
Re: Name And Not ID -
AiVAMAN - 11.06.2009
lol download Car ownership by Seif_ and youre done
Re: Name And Not ID -
Kyle - 11.06.2009
I have my own system but i done it on like saves the id and i need to save the name how do i store the name like?
Re: Name And Not ID -
Kyle - 11.06.2009
Anyone please?