Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IRCCMD:track(botid, channel[], user[], host[], params[]) {
- if(IRC_IsHalfop(botid, channel, user) || (IRC_IsOp(botid, channel, user)) || (IRC_IsAdmin(botid, channel, user)) || (IRC_IsOwner(botid, channel, user))) {
- if (isnull(params)) {
- IRC_Notice(botid, user,"USAGE: !track <PlayerID>");
- }
- if(!IsPlayerConnected(strval(params)))
- return IRC_Notice(gGroupID, "%#mmtech.echo", "4*** Error: Invalid Player ID");
- new giveid, name[256], position[256], score[256], health[256], money[256], playerIP[16], IP[256], Float: Health, Float: Armour;
- new Float:X,Float:Y,Float:Z,Float:A;
- giveid = ReturnUserIRC(params);
- GetPlayerIp(giveid, playerIP, sizeof(playerIP));
- GetPlayerPos(giveid,X,Y,Z);
- GetPlayerFacingAngle(giveid,A);
- GetPlayerHealth(giveid,Health);
- GetPlayerArmour(giveid,Armour);
- format(name,256,"4 ID: %d ID: %s",strval(params),PlayerNameIRC(strval(params)));
- IRC_Notice(gGroupID, "%#mmtech.echo", name);
- format(IP,16,"4 IP of player %s (ID:%d): %d",PlayerNameIRC(giveid),giveid,GetPlayerIp(giveid));
- IRC_Notice(gGroupID, "%#mmtech.echo",IP);
- format(position,256,"4 Position from %s (ID:%d): X: %f10, Y: %f10, Z: %f10, A: %f",PlayerNameIRC(giveid),giveid,X,Y,Z,A);
- IRC_Notice(gGroupID, "%#mmtech.echo",position);
- format(score,256,"4 Score from %s (ID:%d): %d",PlayerNameIRC(giveid),giveid,GetPlayerScore(giveid));
- IRC_Notice(gGroupID, "%#mmtech.echo",score);
- format(health,256,"4 (%s) Health: %s %.0f - Armour: %s %.0f",PlayerNameIRC(giveid),PercentBar(Health),Health,PercentBar(Armour),Armour);
- IRC_Notice(gGroupID, "%#mmtech.echo",health);
- format(money,256,"4 Money from %s (ID:%d): $%d",PlayerNameIRC(giveid),giveid,GetPlayerMoney(giveid));
- IRC_Notice(gGroupID, "%#mmtech.echo",money);
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment