IsPlayerV.I.P Check
#1

I want to make a file where I put a vips name. How can i make pawn check if their ip is their and if true, then they can use vip cmds?

How?

Note: Need more info? Just ask...
Reply
#2

create a type of database and have it check the database with GetPlayerIP
Reply
#3

Quote:
Originally Posted by [LCG
TANKER ]
create a type of database and have it check the database with GetPlayerIP
Sorry, but i dont know how to do that, plz can u help me?

BTW: thnx for quick reply
Reply
#4

plz help

sorry for bump
Reply
#5

I dont know how to make it. But look at a register script. In that kind of script you check of the password is in a file.
So if you can check for a password, you sure can check IP.

I think you can better make a V.I.P script based on name and password not on IP.
Just like admin
Reply
#6

Quote:
Originally Posted by Oxside
I dont know how to make it. But look at a register script. In that kind of script you check of the password is in a file.
So if you can check for a password, you sure can check IP.

I think you can better make a V.I.P script based on name and password not on IP.
Just like admin
I dont want to do name and password because it will restrict them to that name. And, i don't know how to check for it Plz help me...

I wish i was good scripter, LOL
Reply
#7

help?
Reply
#8

BUMP! Plz help me guys!
Reply
#9

I know it will be like this:

Код:
// LethaL's Adminscript

#if defined _IsPlayerLAdmin_included
 #endinput
#endif
#define _IsPlayerLAdmin_included
#pragma library IsPlayerLAdmin

#include <a_samp>
#include <lethaldudb2>


stock IsPlayerLAdmin(playerid)
{

new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));
new file[256], tmp, tmp2; 

format(file,256,"/ladmin/users/%s.sav",udb_encode(name));
tmp = dini_Int(file,"level");
tmp2 = dini_Int(file,"loggedin");

if( (IsPlayerConnected(playerid)) && (tmp > 0) && (tmp2 == 1) )
	return true;
else return false;

}


stock IsPlayerAdminLevel(playerid, level)
{

new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));
new file[256], tmp, tmp2; 

format(file,256,"/ladmin/users/%s.sav",udb_encode(name));
tmp = dini_Int(file,"level");
tmp2 = dini_Int(file,"loggedin");
printf("tmp = %d, tmp2(logged) = %d, level = %d", tmp, tmp2, level );
if( (IsPlayerConnected(playerid)) && (tmp >= level) && (tmp2 != 0) )
	return true;
else return false;

}
[/code[

But I dont know what i will have to edit!
Reply
#10

I assume you have got a admin system in your script, just copy everything from the admin but change ''Admin'' into ''Vip''
Example

Код:
enum pInfo
{
	pPassword[32],
	pLevel,
	pAdmin,
};
Add pVip;

Код:
enum pInfo
{
	pPassword[32],
	pLevel,
	pAdmin,
	pVip,
};
At register also copy the admin thingy and change the pAdmin into pVip.

And the /makevip command

http://pastebin.com/m178fde25



Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)