// script by danix
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <dini>
#define green 0x00ff00
#define orange 0xffbb00
new bool:vip[MAX_PLAYERS];
stock check(playerid) { if(vip[playerid] == true) return 1; else return 0; }
public OnPlayerConnect(playerid)
{
new n[24],file[64]; GetPlayerName(playerid,n,24); format(file,64,\"Viptagok/%s.ini\",n);
if(dini_Exists(file)) return vip[playerid] = true;
else return vip[playerid] = false;
return 1;
}
CMD:vhelp(playerid)
{
if(check(playerid) == 0 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xff0000ff,\"Nem vagy VIP Tag!\");
SendClientMessage(playerid,orange,\"::::: VIP parancsok :::::\");
SendClientMessage(playerid,orange,\"/vkick [iD] - Kirúgod vele a játékost\");
SendClientMessage(playerid,orange,\"/vslap [iD] - Feldobod a játékost\");
SendClientMessage(playerid,orange,\"/vsay [ÜZENET] - VIP-ként írsz\");
SendClientMessage(playerid,orange,\"/vhelp - Kiíratod vele a parancsokat\");
SendClientMessage(playerid,orange,\"/vchat [ÜZENET] - Írsz a VIP chatbe\");
SendClientMessage(playerid,oramge,\"/onvips - Kiíratod vele az online vip tagokat\");
SendClientMessage(playerid,orange,\"/vget [iD] - Magadhoz teleportálod a játékost\");
SendClientMessage(playerid,orange,\"/vgoto [iD] - Odateleportálsz a játékoshoz\");
SendClientMessage(playerid,orange,\"/veject [iD] - Kirúgod a játékost a jármûvébõl\"); /*
V1.2: SendClientMessage(playerid,orange,\"/vlook [iD] - Megfigyeled vele a játékost\");
SendClientMessage(playerid,orange,\"/vlookoff - Abbahagyod a megfigyelést\");
SendClientMessage(playerid,orange,\"/vstat [iD] - Megnézed vele a játékos adatait\");
SendClientMessage(playerid,orange,\"/vszoli - VIP szolgálatba állsz\"); */
SendClientMessage(playerid,orange,\"RCON: {000000}/viptag [iD] - Kinevezel valakit VIP taggá\");
SendClientMessage(playerid,orange,\"RCON: {000000}/delvip [iD] - Elveszed valakitõl a VIP jogot\");
return 1;
}
CMD:vkick(playerid,params[])
{
new kit;
if(check(playerid) == 0)return SendClientMessage(playerid,0xff0000ff,\"[-] !! Nem vagy VIP Tag !! [-]\");
if(sscanf(params,\"u\",kit)) return 0;
Kick(kit);
SendClientMessage(playerid,green,\"
- !! Sikeres kirúgás !!
- \");
return 1;
}
CMD:vslap(playerid,params[])
{
new kit,Float:x,Float:y,Float:z;
if(check(playerid) == 0)return SendClientMessage(playerid,0xff0000ff,\"[-] !! Nem vagy VIP Tag !! [-]\");
if(sscanf(params,\"u\",kit)) return 0;
GetPlayerPos(kit,x,y,z);
SetPlayerPos(kit,x,y,z+20);
SendClientMessage(playerid,green,\"
- !! Sikeres feldobás !!
- \");
return 1;
}
CMD:vsay(playerid,params[])
{
new str[128],n[24];
if(check(playerid) == 0)return SendClientMessage(playerid,0xff0000ff,\"[-] !! Nem vagy VIP Tag !! [-]\");
if(sscanf(params,\"s[128]\",str)) return 0;
GetPlayerName(playerid,n,24);
format(str,128,\"!!![VIP]!!! %s: %s\");
SendClientMessageToAll(0x0000ffff,str);
return 1;
}
CMD:vchat(playerid,params[])
{
new str[128],n[24];
if(check(playerid) == 0)return SendClientMessage(playerid,0xff0000ff,\"[-] !! Nem vagy VIP Tag !! [-]\");
if(sscanf(params,\"s[128]\",str)) return 0;
GetPlayerName(playerid,n,24);
format(str,128,\"[VIP CHAT] %s: %s\");
for(new i; i < MAX_PLAYERS; i++) {
if(check(i) == 1) {
SendClientMessage(i,0xffbb00ff,str);
}
}
return 1;
}
CMD:viptag(playerid,params[])
{
new kit;
if(IsPlayerAdmin(playerid) == 0) return SendClientMessage(playerid,0xff0000ff,\"[-] !! Nem vagy RCON ADMIN ! [-]!\");
if(sscanf(params,\"u\",kit)) return 0;
new n[24],file[64]; GetPlayerName(playerid,n,24); format(file,64,\"Viptagok/%s.ini\",n);
if(check(kit) == 0) return vip[kit] = true,dini_Create(file),
SendClientMessage(playerid,green,\"
- !! Sikeres kinevezés !!
- \"),
SendClientMessage(kit,green,\"!! VIP TAG LETTÉL !!\");
else return SendClientMessage,playerid,0xff0000ff,\"!!!! A játékos már VIP Tag !!!!\");
return 1;
}
CMD:delvip(playerid,params[])
{
new kit;
if(IsPlayerAdmin(playerid) == 0) return SendClientMessage(playerid,0xff0000ff,\"[-] !! Nem vagy RCON ADMIN ! [-]!\");
if(sscanf(params,\"u\",kit)) return 0;
new n[24],file[64]; GetPlayerName(playerid,n,24); format(file,64,\"Viptagok/%s.ini\",n);
if(check(kit) == 1) return vip[kit] = false,dini_Remove(file),
SendClientMessage(playerid,green,\"
- !! Sikeres lefokozás !!
- \"),
SendClientMessage(kit,0xff0000ff,\"Már nem vagy vip!
\");
else return SendClientMessage,playerid,0xff0000ff,\"!!!! A játékos nem VIP Tag !!!!\");
return 1;
}
CMD:onvips(playerid)
{
new str[128],n[24];
if(check(playerid) == 0)return SendClientMessage(playerid,0xff0000ff,\"[-] !! Csak VIP-ek nézhetik meg az online vipeket !! [-]\");
for(new i; i < MAX_PLAYERS; i++) {
if(check(i) == 1) {
GetPlayerName(i,n,24);
}
}
format(str,128,\"[VIP] %s\\n\",n);
SendClientMessage(playerid,str);
return 1;
}
CMD:vget(playerid,params[])
{
new kit,Float:x,Float:y,Float:z;
if(check(playerid) == 0)return SendClientMessage(playerid,0xff0000ff,\"[-] !! Nem vagy VIP Tag !! [-]\");
if(sscanf(params,\"u\",kit)) return 0;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(kit,x+5,y+3,z);
SendClientMessage(kit,0x0000ffff,\"Egy VIP magához teleportált\");
SendClientMessage(playerid,green,\"
return 1;
}
CMD:vgoto(playerid,params[])
{
new kit,Float:x,Float:y,Float:z;
if(check(playerid) == 0)return SendClientMessage(playerid,0xff0000ff,\"[-] !! Nem vagy VIP Tag !! [-]\");
if(sscanf(params,\"u\",kit)) return 0;
GetPlayerPos(kit,x,y,z);
SetPlayerPos(playerid,x+5,y+3,z);
SendClientMessage(playerid,green,\"
- !! Sikeres teleportálás !!
- \");
return 1;
}
CMD:veject(playerid,params[])
{
new kit;
if(check(playerid) == 0)return SendClientMessage(playerid,0xff0000ff,\"[-] !! Nem vagy VIP Tag !! [-]\");
if(sscanf(params,\"u\",kit)) return 0;
RemovePlayerFromVehicle(kit,GetPlayerVehicleID(kit))
SendClientMessage(playerid,green,\"
- !! Sikeres kidobás !!
- \");
return 1;
}
::LETÖLTÉS::