~registry/flses/trunk

« back to all changes in this revision

Viewing changes to classes/flhook/playercontrol.php

  • Committer: Fabian Thoma
  • Date: 2009-06-06 14:43:01 UTC
  • Revision ID: fabian.thoma@yahoo.de-20090606144301-9tc29bom162eqdzw
+GNU GPL v3 Message
+development in Bank feature
+setrep function in FLHook class

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
 
2
##################################################################################
 
3
##                                                                              ##      
 
4
##      This File is Part of the FLSES Project, released under GNU GPL v3       ##
 
5
##      Copyright (c) 2009 tai(agent00tai@yahoo.de)                             ##
 
6
##                                                                              ##
 
7
##      This program is free software: you can redistribute it and/or modify    ##
 
8
##      it under the terms of the GNU General Public License as published by    ##
 
9
##      the Free Software Foundation, either version 3 of the License, or       ##
 
10
##      (at your option) any later version.                                     ##
 
11
##                                                                              ##
 
12
##      This program is distributed in the hope that it will be useful,         ##
 
13
##      but WITHOUT ANY WARRANTY; without even the implied warranty of          ##
 
14
##      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           ##
 
15
##      GNU General Public License for more details.                            ##
 
16
##                                                                              ##
 
17
##      You should have received a copy of the GNU General Public License       ##
 
18
##      along with this program.  If not, see <http://www.gnu.org/licenses/>.   ##
 
19
##                                                                              ##
 
20
##################################################################################
 
21
 
2
22
class playercontrol
3
23
{
4
24
#       function beam($that,$player,$base,$type="player")
14
34
#                       return $result;
15
35
#               }
16
36
#       }
 
37
        function setrep($that,$player,$faction,$value,$type="player")
 
38
        {
 
39
                if($type == "player")
 
40
                        $that->conn->write("setrep ".$player." ".$faction." ".$value."\r\n");
 
41
                else
 
42
                        $that->conn->write("setrep$ ".$player."\r\n");
 
43
                $result = $that->conn->read_till('OK');
 
44
                echo $result;
 
45
                return true;
 
46
        }
17
47
        
18
48
        function savechar($that,$player,$type="player")
19
49
        {#savechar <charname>