how to print(""); playername, coords of player where used command?
#1

i want that if player types /build then in console prints playername and coordinates where the player typed /build

How can i do like that?

print(" has build a chair");

but i need playername and coords how can i do ?
Reply
#2

pawn Код:
new
    name[MAX_PLAYER_NAME], Float:pos[3];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
printf("name:%s, posX:%f, posY:%f, posZ:%f", name, pos[0], pos[1], pos[2]);
Reply
#3

Thanks again
Reply
#4

kk done
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)