Simple Scripting
#2

Are you using zcmd? Can you explain what the command is supposed to do exactly?
Is it that if I type "/dpm Hello!" all the other players see: "Schneider says: Hello!" ?

In that case:
pawn Код:
CMD:dpm(playerid, params[])
{
    new playername[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "%s says: %s", playername, params);
    SendClientMessageToAll(COLOR_SAY, string);
    return 1;
}
Reply


Messages In This Thread
Simple Scripting - by Shank - 30.01.2015, 18:31
Re: Simple Scripting - by Schneider - 30.01.2015, 18:39
Re: Simple Scripting - by CalvinC - 30.01.2015, 18:40
Re: Simple Scripting - by Shank - 30.01.2015, 18:44
Re: Simple Scripting - by CalvinC - 30.01.2015, 18:49
Re: Simple Scripting - by Shank - 30.01.2015, 19:17
Re: Simple Scripting - by CalvinC - 30.01.2015, 19:25
Re: Simple Scripting - by FunnyBear - 30.01.2015, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)