[Ajuda] textdraw - 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: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] textdraw (
/showthread.php?tid=612328)
textdraw -
BLacksKrillex - 16.07.2016
boa tarde boyzinhos e boyzinhas do forum! como faзo para mandar uma textdraw para um player?
Re: textdraw -
HaRdiiZin - 16.07.2016
PlayerTextDrawShow or TextDrawShowForPlayer
Re: textdraw -
BLacksKrillex - 16.07.2016
kkk tipo asism tenho a textdraw criada dae mandar somente para um player via um cmd
Re: textdraw -
moura98 - 16.07.2016
oq tem de dificil nisso?
PHP код:
CMD:mostrartext(playerid)
{
TextDrawShowForPlayer(playerid, variavel_da_textdraw); // aqui vc coloca a variavel da sua textdraw
return true;
}
Re: textdraw -
BLacksKrillex - 16.07.2016
ainda nn... kk tipo /mostrartext [id](do player que e pra mostrar) tipo assim '~'
Re: textdraw -
moura98 - 16.07.2016
Quote:
Originally Posted by BLacksKrillex
ainda nn... kk tipo /mostrartext [id](do player que e pra mostrar) tipo assim '~'
|
usa com sscanf pra ficar mais facil
PHP код:
CMD:mostrartext(playerid, params[])
{
new id, str[80];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, FF0000, "Uso correto: /mostrartext [id]");
TextDrawShowForPlayer(id, variavel_da_textdraw); // aqui vc coloca a variavel da sua textdraw
format(str, 80, "voce mostrou uma textdraw pro id: %i", id);
SendClientMessage(playerid, -1, str);
return true;
}
Re: textdraw -
BLacksKrillex - 16.07.2016
Quote:
CMD:mostrartext(playerid, params[])
{
new id, str[80];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "Uso correto: /mostrartext [id]");
TextDrawShowForPlayer(id, ID_DA_TEXT); // aqui vc coloca a variavel da sua textdraw
format(str, 80, "voce mostrou uma textdraw pro id: %i", id);
SendClientMessage(playerid, -1, str);
return true;
}
|
nao seria assim? '-'
Re: textdraw - Carlos001 - 16.07.2016
Quote:
Originally Posted by BLacksKrillex
nao seria assim? '-'
|
as vezes nao precissa usar params
Re: textdraw -
moura98 - 17.07.2016
Quote:
Originally Posted by BLacksKrillex
nao seria assim? '-'
|
exato