Hey there.
#1

Hey evrey one how are you today? Well, Ive got some "basic" or not lol questions.

if you can help please help me thank you. okay here we go



How to change "unknown Command" To what ever I want?


how to make an /n(needhelp) chat?

Why I can see only one "textdraw" in my server?

Why when I port forword "7777" my server still dosent show up.

Textdraw code:

pawn Код:
After the includes.
//the textdraws
new Text:Textdraw1;
new Text:Textdraw0;


after the /kill command

    TextDrawShowForPlayer(playerid, Textdraw1);
    return 0;

EX:
    if(strcmp(cmdtext, "/kill", true) == 0)
{
  SetPlayerHealth(playerid, 0.0);
  return 1;
}


    // PROCESS OTHER COMMANDS

    TextDrawShowForPlayer(playerid, Textdraw1);
    return 0;
}

after add static vehcile:

//the forum textdraw
    Textdraw1 = TextDrawCreate(1.000000,433.000000,"http://www.ppfs.co.cc/co.nr[url=http://][/url]");
    TextDrawAlignment(Textdraw1,0);
    TextDrawBackgroundColor(Textdraw1,0x000000ff);
    TextDrawFont(Textdraw1,2);
    TextDrawLetterSize(Textdraw1,0.288888,1.100000);
    TextDrawColor(Textdraw1,0xffffffff);
    TextDrawSetOutline(Textdraw1,1);
    TextDrawSetProportional(Textdraw1,1);
    TextDrawSetShadow(Textdraw1,1);
    //the textdraw above hp
    Textdraw0 = TextDrawCreate(542.000000,54.000000,"Propilots Fun Server");
    TextDrawAlignment(Textdraw0,0);
    TextDrawBackgroundColor(Textdraw0,0x000000ff);
    TextDrawFont(Textdraw0,3);
    TextDrawLetterSize(Textdraw0,0.299999,1.100000);
    TextDrawColor(Textdraw0,0xffffffff);
    TextDrawSetOutline(Textdraw0,1);
    TextDrawSetProportional(Textdraw0,1);
    TextDrawSetShadow(Textdraw0,4);
whats wrong? thanks for your help,


thank you.

that it for my questions.
Reply
#2

Well i'll try a few questions...:

Quote:

How to change "unknown Command" To what ever I want?

At the bottom of the OnPlayerCommandText callback, change "return 0;" to "return SendClientMessage(you failed goes in here);"

Quote:

how to make an /n(needhelp) chat?

Could you elaborate on this? Does it send a message to admins saying you need help on something or what?

Quote:

Why when I port forword "7777" my server still dosent show up.

That's a question for these guys

Quote:

Why I can see only one "textdraw" in my server?

Looking at your script you only show textdraw1.

You have:
Код:
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw1);
You need:
Код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
But not in the same place... I hope you know what I mean =p
Reply
#3

Quote:
Originally Posted by Weirdosport
Well i'll try a few questions...:

Quote:

How to change "unknown Command" To what ever I want?

At the bottom of the OnPlayerCommandText callback, change "return 0;" to "return SendClientMessage(you failed goes in here);"

Quote:

how to make an /n(needhelp) chat?

Could you elaborate on this? Does it send a message to admins saying you need help on something or what?

Quote:

Why when I port forword "7777" my server still dosent show up.

That's a question for these guys

Quote:

Why I can see only one "textdraw" in my server?

Looking at your script you only show textdraw1.

You have:
Код:
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw1);
You need:
Код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
But not in the same place... I hope you know what I mean =p
thanks for your help

i am trying already 1 month to enable the port but still not working ;/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)