29.06.2012, 16:29
Код:
CMD:slap(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0x708090FF, "You are not a admin!"); new targetid, string[128]; if(isnull(params)) return SendClientMessage(playerid, 0x708090FF, "Syntax: /slap [playerid]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!"); SetPlayerVelocity(targetid, 0.5, 0.0, 0.0); format(string, sizeof(string), "%s has slapped %s", GetName(playerid), GetName(targetid)); SendMessageToRAdmins(0xFF0000FF, string); return 1; }