the wapnetph script has the function of 1 chat post = 1 plusses
chat posts into plusses
Collapse
X
-
Originally posted by godzilla View Posti tried to search here but i could not get it so i posted my request.
i want code to change chat post in to pluses so that if a user chatting in chat room then he get 100 pluses for 30 min
thanks
but it is something like this i just modify in function chat
Code:function addtochat($uid, $rid) { $timeto = 120; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'"); $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'"); if(!timeout($uid)) { if($hours==5) { $kano ="100"; $msg = "".getnick_uid(getuid_sid($sid))."Hey thanks 4 spending 30mins here in chatroom! u got 100price plusses."."[br/][small]Note: This is an automated PM. [/small]"; autopm($msg, $uid); $res = mysql_query("UPDATE ibwf_users SET plusses=plusses+'$kano' WHERE id='".$uid."'"); $res = mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'"); $res = mysql_query("UPDATE ibwf_users SET battlep=battlep+'$kano' WHERE id='".$uid."'"); } } $ttime = time(); mysql_query("UPDATE ibwf_users SET resetime='".$ttime."' WHERE id='".$uid."'"); mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='".$uid."'"); mysql_query("INSERT INTO ibwf_online SET userid='".$uid."', actvtime='".$tm."', place='".$place."', placedet='".$plclink."'"); if(!$res) { mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'"); $res = mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$place."', placedet='".$plclink."' WHERE userid='".$uid."'"); } }
Comment
Comment