10.03.2011, 13:37
Hey all, i was wondering how i can show a text in the middle of my game. I saw it in another server and i would like to know how to do it
Dahley

Dahley
COMMAND:gametext(playerid, params[])
{
new msg[128];
if(sscanf(params, "s[128]", msg)) return SendClientMessage(playerid, YOUR_COLOR, "Usage: /gametext <message>");
new string[128];
format(string, sizeof(string), "%s",msg);
GameTextForAll(string, 5000, 0);
return 1;
}
command(announce, playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /announce [Text]");
GameTextForAll(params,4000,3);
return 1;
}
command(announce, playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 0;
if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /announce [Text]");
GameTextForAll(params,4000,3);
return 1;
}