Jump to content
MakeWebGames

Spy on user


Curt

Recommended Posts

This is a simple mod so your players can spy on other players stats, money in bank, and points...

lol...the reason it shows points is because it doesnt show in my hof...:P

coded from scratch...

enjoy :D

spy.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

add this link to your viewuser page :

Spy on User

Link to comment
Share on other sites

I do see one thing :P

$query1 = sprintf("UPDATE `users` SET money = money - $cost WHERE `userid`=$userid");

mysql_query($query1);

You sprintf but didnt sprint f anything :P

hehe

should be

$query1 = sprintf("UPDATE `users` SET money = money - %u WHERE `userid`= %u", $cost, $userid);

$db->query($query1);

OR

 

$db->query(sprintf("UPDATE `users` SET money = money - %u WHERE `userid` = %u", $cost, $userid));

 

But good work :)

Link to comment
Share on other sites

I do see one thing :P

$query1 = sprintf("UPDATE `users` SET money = money - $cost WHERE `userid`=$userid");

mysql_query($query1);

You sprintf but didnt sprint f anything :P

hehe

should be

$query1 = sprintf("UPDATE `users` SET money = money - %u WHERE `userid`= %u", $cost, $userid);

$db->query($query1);

OR

 

$db->query(sprintf("UPDATE `users` SET money = money - %u WHERE `userid` = %u", $cost, $userid));

 

But good work :)

lol...thanks for the tip immortalthug :P

im glad you guys like it :)

cheers

Link to comment
Share on other sites

  • 3 years later...

spy.php -- w/o forum junk

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

what i am looking for is someone to add users logs to where they can see the last 3 spies on that user when attempting another spy ill pay 15$ to someone who can add in some sort of log for the players :)

and i would prefer it to be "open" ill pay for the work to be posted in forum, must work though

Link to comment
Share on other sites

Alright! As requested, Thanks To Kyle Massacre for doing this i just changed a few things to my liking and im sure you will be just as pleased.

So here ya go work that i had paid for just for you peoples :) Dont ask why just accept it :D

spy.php ----- (With Logs) -----

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

.sql

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...