21.09.2013, 19:39
Before I Start, #NoHate, First Filterscript. :3
Okay, This Is Just A Personal Message System, Made Using zcmd By Zeex.Theres Only One Command Which Is,
/pm [ID] [Message]
Код:
#include <zcmd> CMD:pm(playerid, params[]) { new str[256], str2[256], id, Name1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME]; if(sscanf(params, "us", id, str2)) { SendClientMessage(playerid, 0xFF0000FF, "Usage: /pm [ID] [MESSAGE]"); return 1; } if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Player Isnt Connected"); if(playerid == id) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You Cannot PM Yourself!") { GetPlayerName(playerid, Name1, sizeof(Name1)); GetPlayerName(id, Name2, sizeof(Name2)); format(str, sizeof(str), "PM To %s: %s", Name2, id, str2); SendClientMessage(playerid, 0xFF0000FF, str); format(str, sizeof(str), "PM From %s: %s", Name1, playerid, str2); SendClientMessage(id, 0xFF0000FF, str); } return 1; }