09.10.2011, 21:38
You has the zcmd?
pawn Код:
cmd(pm, playerid, params[])
{
new id, message[100];
if(sscanf(params,"us[100]", id, message)) return SendClientMessage(playerid, -1,"Usage: /pm [id][message]");
new string[128];
format(string, sizeof(string),"PM From %s[ID: %d]: %s", GetName(id), id, message);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string),"PM To %s[ID: %d]: %s", GetName(playerid), id, message);
SendClientMessage(id, -1, string);
return 1;
}
pawn Код:
new id, message;
//replace to
new id, message[128];
if(sscanf(params,"us[128]", id, Message))
//replace to
if(sscanf(params,"us[128]", id, message))