does not accept
#1

- I do not want to appear on all players: '' You've been teleported to Las Venturas Airport. ''

- TextDrawShowForPlayer: It does not accept this command

- I do not want the text to appear on all players

Code:
#include <a_samp>
#include <zcmd>
#pragma tabsize 0

new Text:Message[5];
new MessageStr[5][128];

public OnFilterScriptInit()
{
        for(new line; line<5; line++)
        {
        format(MessageStr[line], 128, " ");
        }
   Message[0] = TextDrawCreate(300, 100+200, MessageStr[0]);
    Message[1] = TextDrawCreate(300, 112+200, MessageStr[1]);
    Message[2] = TextDrawCreate(300, 124+200, MessageStr[2]);
    Message[3] = TextDrawCreate(300, 136+200, MessageStr[3]);
    Message[4] = TextDrawCreate(300, 148+200, MessageStr[4]);
	for(new playerid,line; line<5; line++)
        {
        TextDrawLetterSize(Message[line], 0.249999, 1.199998);
        TextDrawSetShadow(Message[line], 0);
        TextDrawAlignment(Message[line], 1);
        TextDrawFont(Message[line], 1);
        TextDrawShowForPlayer(playerid,Message[line]);//It does not accept this command
        }
    for(new playerid,line; line<5; line++)
        {
        TextDrawLetterSize(Message[line], 0.249999, 1.199998);
        TextDrawSetShadow(Message[line], 0);
        TextDrawAlignment(Message[line], 1);
        TextDrawTextSize(Message[line], 640, 480);
        TextDrawFont(Message[line], 1);
        TextDrawSetOutline(Message[line], 1);
        TextDrawShowForPlayer(playerid,Message[line]);//It does not accept this command
        }
        return 1;
}

public OnFilterScriptExit()
{
    for(new line; line<5; line++)
        {
            TextDrawDestroy(Message[line]);
        }
        return 1;
}

public OnPlayerConnect(playerid)
{
    for(new line; line<5; line++)
        {
            TextDrawShowForPlayer(playerid, Message[line]);//It does not accept this command
        }
        return 1;
}

CMD:lvairport(playerid, params[])
{
        #pragma unused params
        new stringD[128];
        format(stringD, sizeof(stringD), "~r~~h~You've been teleported to Las Venturas Airport.");
        SendLeMessage(playerid, stringD);
        SetPlayerPos(playerid, 1487.9703,1736.9537,10.8125);
		return 1;
}

stock SendLeMessage(playerid, const text[])
{
    for(new line; line < 5; line++)
    {
        TextDrawShowForPlayer(playerid, Message[line]);//It does not accept this command
    }
    for(new line; line < 5; line++)
    {
        TextDrawHideForPlayer(playerid,Message[line]);//It does not accept this command
        if(line < 4)
        {
            MessageStr[line] = MessageStr[line+1];
            TextDrawSetString(Message[line], MessageStr[line]);
        }
    }
    format(MessageStr[4], 128, "%s",text);
    TextDrawSetString(Message[4], MessageStr[4]);
    for(new line; line < 5; line++)
    {
        TextDrawShowForPlayer(playerid,Message[line]);//It does not accept this command
    }
    return 1;
}
Reply
#2

- TextDrawShowForPlayer = I'm doing
- It seems all players
- I do not want to appear on all players must not be seen
- This text looks at all the players You've been teleported to Las Venturas Airport.
- All players see the text You've been teleported to Las Venturas Airport.
- You see all the players
- Players use the command /lvairport you see You've been teleported to Las Venturas Airport.
- see players using the command you see You've been teleported to Las Venturas Airport.
- I'm sorry my english is very bad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)