[HELP] How to make an text script
#1

Hi, im wondering if you can make an text script
for example

player type /refundinfo

and if they hit enter they will see this following text:

******American Streets Roleplay Refund Info*********
Cash- 30k
Bank Account- 10k
Level- 5
Materials- 50k
Pot- 100
Crack- 100
*******************************************

Thanks in advance
Reply
#2

Depends on how you want the refund info to be displayed.. for example, you could use s dialog.. but if you really want it send, you could.. RESEARCH on how to (keywords coming) *SendClientMessage* *OnPlayerCommand*.


E.g.

pawn Код:
SendClientMessage(playerid, COLOR_GREY, "************Refund Info***************");
SendClientMessage(playerid, COLOR_GREY, "Cash - $30");
...... etc.
Reply
#3

Did you want it as a Normal chat? or TextDraw?
Reply
#4

Код:
CMD:refundinfo(playerid, params[]) 
{ 
    SendClientMessage(playerid, COLOR_GREY, "******American Streets Roleplay Refund Info*********");
    SendClientMessage(playerid, COLOR_GREY, "Cash - 30k");
    SendClientMessage(playerid, COLOR_GREY, "Bank Account- 10k");
    SendClientMessage(playerid, COLOR_GREY, "Level- 5");
    SendClientMessage(playerid, COLOR_GREY, "Pot- 100");
    SendClientMessage(playerid, COLOR_GREY, "Crack- 100");
    SendClientMessage(playerid, COLOR_GREY, "*******************************************");
    return 1; 
}
Reply
#5

pawn Код:
CMD:refundinfo(playerid, params[])
{
    SendClientMessage(playerid, -1, "******American Streets Roleplay Refund Info*********");
    SendClientMessage(playerid, -1, "Cash - 30k");
    SendClientMessage(playerid, -1, "Bank Account- 10k");
    SendClientMessage(playerid, -1, "Level- 5");
    SendClientMessage(playerid, -1, "Pot- 100");
    SendClientMessage(playerid, -1, "Crack- 100");
    SendClientMessage(playerid, -1, "*******************************************");
    return 1;
}
Reply
#6

what is textdraw?
Reply
#7

textdraw is a text that appears on the screen,but for /refundinfo messages are better than textdraws,textdraws will disappear after a time that you set or it will stay on the screen..
Reply
#8

Quote:
Originally Posted by XK
Посмотреть сообщение
textdraw is a text that appears on the screen,but for /refundinfo messages are better than textdraws,textdraws will disappear after a time that you set or it will stay on the screen..
ohh ok thanks
Reply
#9

Hope you +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)