29.10.2017, 17:38
Salve galerinha, criei umas textdraws clicбveis aqui sу que elas nгo aparecem ao digitar o comando, sempre da "comando invalido" o mais louco й que compila tudo certinho espero que vocкs possam me ajudar.
Quote:
new Text:Textdraw0; new Text:Textdraw1; new Text:Textdraw2; new Text:Textdraw3; |
Quote:
public OnGameModeInit() { Textdraw0 = TextDrawCreate(250.000000, 107.000000, "RADIO POP"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 3); TextDrawLetterSize(Textdraw0, 0.500000, 1.000000); TextDrawColor(Textdraw0, -16776961); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); TextDrawUseBox(Textdraw0, 1); TextDrawBoxColor(Textdraw0, 255); TextDrawTextSize(Textdraw0, 0.000000, 10.000000); Textdraw1 = TextDrawCreate(250.000000, 120.000000, "RADIO FUNK"); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 3); TextDrawLetterSize(Textdraw1, 0.500000, 1.000000); TextDrawColor(Textdraw1, 16711935); TextDrawSetOutline(Textdraw1, 0); TextDrawSetProportional(Textdraw1, 1); TextDrawSetShadow(Textdraw1, 1); TextDrawUseBox(Textdraw1, 1); TextDrawBoxColor(Textdraw1, 255); TextDrawTextSize(Textdraw1, 0.000000, 10.000000); Textdraw2 = TextDrawCreate(250.000000, 132.000000, "RADIO ROCK"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 3); TextDrawLetterSize(Textdraw2, 0.500000, 1.000000); TextDrawColor(Textdraw2, 65535); TextDrawSetOutline(Textdraw2, 0); TextDrawSetProportional(Textdraw2, 1); TextDrawSetShadow(Textdraw2, 1); TextDrawUseBox(Textdraw2, 1); TextDrawBoxColor(Textdraw2, 255); TextDrawTextSize(Textdraw2, 0.000000, 10.000000); Textdraw3 = TextDrawCreate(250.000000, 144.000000, "RADIO RAP"); TextDrawBackgroundColor(Textdraw3, 255); TextDrawFont(Textdraw3, 3); TextDrawLetterSize(Textdraw3, 0.500000, 1.000000); TextDrawColor(Textdraw3, -65281); TextDrawSetOutline(Textdraw3, 0); TextDrawSetProportional(Textdraw3, 1); TextDrawSetShadow(Textdraw3, 1); TextDrawUseBox(Textdraw3, 1); TextDrawBoxColor(Textdraw3, 255); TextDrawTextSize(Textdraw3, 0.000000, 10.000000); TextDrawSetSelectable(Textdraw1, true); TextDrawSetSelectable(Textdraw2, true); TextDrawSetSelectable(Textdraw3, true); // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } |
Quote:
CMD:mp3a(playerid, params[]) { SelectTextDraw(playerid, 0xC0C0C0AA); TextDrawShowForPlayer(playerid, Textdraw0); TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw2); TextDrawShowForPlayer(playerid, Textdraw3); return 1; } public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(clickedid == Textdraw0) { PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream"); SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop"); Escondertexts(playerid); } if(clickedid == Textdraw1) { PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream"); SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop"); Escondertexts(playerid); } if(clickedid == Textdraw2) { PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream"); SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop"); Escondertexts(playerid); } if(clickedid == Textdraw3) { PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream"); SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop"); Escondertexts(playerid); } return 1; } stock Escondertexts(playerid) { TextDrawHideForPlayer(playerid, Textdraw1); CancelSelectTextDraw(playerid); return 1; } |