23.10.2013, 13:51
(
Последний раз редактировалось OKStyle; 23.10.2013 в 14:29.
)
Oh my God, sscanf
Zcmd I think:
pawn Код:
if(strcmp(cmdtext, "/asay", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return 1;
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
new string[144];
format(string, sizeof(string), "Admin %s: %s", PlayerName, cmdtext[6]);
SendClientMessageToAll(0x66FF00FF, string);
return 1;
}
pawn Код:
CMD:say(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
new string[144];
format(string, sizeof(string), "Admin %s: %s", PlayerName, params);
SendClientMessageToAll(0x66FF00FF, string);
return 1;
}