SA-MP Forums Archive
text draw now showing in vehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: text draw now showing in vehicle (/showthread.php?tid=576240)



text draw now showing in vehicle - Rissam - 02.06.2015

this is my code
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
        if(
newkeys == KEY_FIRE)
       {
            new 
vehicleid GetVehicleModel(playerid);
            if(
GetVehicleModel(vehicleid) == 448)
            {
                
TextDrawShowForPlayer(playerid,Textdraw0);
                
TextDrawShowForPlayer(playerid,Textdraw1);
                
TextDrawShowForPlayer(playerid,Textdraw2);
                
TextDrawShowForPlayer(playerid,Textdraw3);
                
TextDrawShowForPlayer(playerid,Textdraw4);
                
TextDrawShowForPlayer(playerid,Textdraw5);
                
viewingtextdraws[playerid] =1;
            }
            return 
1;
        }
        return 
1;

not working


AW: text draw now showing in vehicle - Kaliber - 02.06.2015

Schreib es so:

Код:
if(newkeys & KEY_FIRE) 
{ 
    new model = GetVehicleModel(GetPlayerVehicleID(playerid)); 
    if(model == 448) 
    {
Greekz


Re: text draw now showing in vehicle - Rissam - 03.06.2015

thanks +rep