Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IRCCMD:slap(botid, channel[], user[], host[], params[])
- {
- new playerid, reason[64];
- new player1;
- if (sscanf(params, "dS(No reason.)[64]", playerid, reason))
- {
- return 1;
- }
- if (IRC_IsHalfop(botid, channel, user))
- {
- if(IsPlayerConnected(playerid))
- {
- new msg[128], pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(msg, sizeof(msg), "*** %s has been slapped by Staff Member %s on IRC for reason: %s", pname, user, reason);
- IRC_GroupSay(groupID, channel, msg);
- format(msg, sizeof(msg), "*** %s has been slapped by Staff Member %s on IRC for reason: %s", pname, user, reason);
- SendClientMessageToAll(0xFF0000C8, msg);
- new Float:Health;
- new Float:x, Float:y, Float:z;
- GetPlayerHealth(player1,Health);
- SetPlayerHealth(player1,Health -10);
- GetPlayerPos(player1,x,y,z);
- SetPlayerPos(player1,x,y,z+7);
- PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
- PlayerPlaySound(player1,1190,0.0,0.0,0.0);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment