SA-MP Forums Archive
[Pregunta]Como mandar un CP a.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Pregunta]Como mandar un CP a.. (/showthread.php?tid=565852)



[Pregunta]Como mandar un CP a.. - Choidito - 01.03.2015

Hola,quisiera preguntar como es la funciуn para mandar un CP de color verde y que aparesca en el mapa al escribir un comando..porfavor garcias , osea,que si un jugador pone "tal comando" , a otro jugador le aparesca el CP de donde estб ese jugador


Respuesta: [Pregunta]Como mandar un CP a.. - OTACON - 01.03.2015

https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
https://sampwiki.blast.hk/wiki/GetPlayerPos

Код:
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerMapIcon(jugadorid, iconid, pos[0], pos[1], pos[2], 0, color, MAPICON_LOCAL_CHECKPOINT9);



Re: Respuesta: [Pregunta]Como mandar un CP a.. - Choidito - 01.03.2015

Quote:
Originally Posted by OTACON
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
https://sampwiki.blast.hk/wiki/GetPlayerPos

Код:
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerMapIcon(jugadorid, iconid, pos[0], pos[1], pos[2], 0, color, MAPICON_LOCAL_CHECKPOINT ;
Gracias,por cierto,te falto cerrar el ")"