PHP Code:
function onActionServerside(){
if (params[0] == "check"){
this.accept = 0;
with (getnpc("Police-DB")){
if (player.account in this.admins){
this.accept = 1;
}
}
if (this.accept == 1){
player.chat = "Accepted";
}else{
player.chat = "Rejected";
}
}
Doesnt work

it always says rejected