08.10.2016, 22:27
So I made textdraw
and this
but when i go ingame and press Y nothing shows but it says something on bottom left like show animation so i know key state is working but textdraw not appearing.
Quote:
new Text:intro; public OnFilterScriptInit() intro = TextDrawCreate(24.399976, 195.646636, "random"); TextDrawLetterSize(intro, 0.400000, 1.600000); TextDrawTextSize(intro, 639.000000, 0.000000); TextDrawAlignment(intro, 1); TextDrawColor(intro, -1); TextDrawUseBox(intro, 1); TextDrawBoxColor(intro, 255); TextDrawSetShadow(intro, 0); TextDrawSetOutline(intro, 0); TextDrawBackgroundColor(intro, 255); TextDrawFont(intro, 1); TextDrawSetProportional(intro, 1); TextDrawSetShadow(intro, 0); return 1; |
Quote:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { { if (newkeys == 65536) { if(IsPlayerInRangeOfPoint(playerid,50,1279.2273,-1249.4648,13.5191)) { new Text:intro; TextDrawShowForPlayer(playerid,intro); } } // This is if player Pressed LMB Then Textdraw will get hide if (newkeys == KEY_FIRE) { new Text:intro; TextDrawHideForPlayer(playerid,intro); } return 1; |