14.05.2010, 22:31
i want to make a command like if you type /broadcast (your text)
then it will be shown to all players how can i do like that?
then it will be shown to all players how can i do like that?
dcmd_broadcast(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid, 0xFFFFFFAA, "/broadcast [text]");
new string[128];
format(string,sizeof(string),"%s",params);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
dcmd_raadio(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 322.0290,1121.3148,1083.8828))
if(!strlen(params)) return SendClientMessage(playerid, 0xFFFFFFAA, "/raadio [tekst]");
new string[128];
format(string,sizeof(string),"[Raadio] %s",params);
SendClientMessageToAll(ROHELINE,string);
return 1;
}
) return SendClientMessage(playerid,0xFFFFFFAA,"You can't use this here!");