how to print(""); playername, coords of player where used command? - 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: how to print(""); playername, coords of player where used command? (
/showthread.php?tid=143140)
how to print(""); playername, coords of player where used command? -
hardstop - 21.04.2010
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 ?
Re: how to print(""); playername, coords of player where used command? -
Correlli - 21.04.2010
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]);
Re: how to print(""); playername, coords of player where used command? -
hardstop - 21.04.2010
Thanks again
Re: how to print(""); playername, coords of player where used command? -
DJDhan - 21.04.2010
kk done