Name And Not ID
#1

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!
Reply
#2

I didn't understand you much... but I think you need something like Vehicle names display??
Reply
#3

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)"

Reply
#4

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
Reply
#5

How do i store it
Reply
#6

?
Reply
#7

pawn Код:
new name[24], string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "This vehicle belongs to %s", name );
SendClientMessageToAll(0xFFFF00AA, string);
Reply
#8

lol download Car ownership by Seif_ and youre done
Reply
#9

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?
Reply
#10

Anyone please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)