16.07.2016, 18:46
boa tarde boyzinhos e boyzinhas do forum! como faзo para mandar uma textdraw para um player?
CMD:mostrartext(playerid)
{
TextDrawShowForPlayer(playerid, variavel_da_textdraw); // aqui vc coloca a variavel da sua textdraw
return true;
}
ainda nn... kk tipo /mostrartext [id](do player que e pra mostrar) tipo assim '~'
|
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;
}
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; } |