Help me please
#4

pawn Код:
public OnPlayerText(playerid,text[])
{
    new string[124],name[24]; // create some variables to be used
    GetPlayerName(playerid,name,sizeof(name)); // get the players name
    format(string,sizeof(string),"%s (%d): %s",name,playerid,text); // format a string containing the name, id and the text of the message being sent
    SendClientMessageToAll(-1,string); // Change -1 to a color, -1 = white
    return 0; // return false so the default samp message isn't sent
}
Reply


Messages In This Thread
Help me please - by PrinceOfPersia - 15.11.2013, 18:31
Re: Help me please - by ReD_DeVi - 15.11.2013, 18:32
Re: Help me please - by Giroud12 - 15.11.2013, 18:35
Re: Help me please - by tyler12 - 15.11.2013, 18:37

Forum Jump:


Users browsing this thread: 2 Guest(s)