18.03.2010, 18:34
Multi text lines
DescriptionWhat it do?
It transfers string's text into two lines.
What it used for?
It's used for RolePlay servers. Basically most RP servers have /me /do /b commands. This function can transfer typed command text into multiple lines.
The text can be only up to 128 characters!
Full screenshot: http://i40.tinypic.com/xkotvc.png
Usage
Functions:
SendClientMessageA(playerid,color,text[])
Example:
Код:
public OnPlayerText(playerid, text[]) { new pName[MAX_PLAYER_NAME], msg[129]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(msg,sizeof msg,"%s says: %s",pName,text); SendClientMessageA(playerid,GREY,msg); return 0; }
You must put include to includes, and put this thing into your code (at includes ex.: #include <a_samp>)
Код:
#include <multilines>
Versions
v1.0 (2010-03-1: Created include, next version will be included with ProxDetector.
Download:
http://pastebin.com/TRLPpwYy