• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Filterscript] VIP System for gang wars/TDM
#2
Hello abraar I downloaded one but I don't remember the name of the owner but I only created some things like the vip menu and new commands The script is in Spanish was Portuguese

Code:
/*
Menu Vip
*/

#include <a_samp>
#include <dof2>
#include <zcmd>
#include <sscanf2>

#define Level_Vip 2

new PlayerText:MENU_VIP[MAX_PLAYERS][14];
new Selecionar_Skin[MAX_PLAYERS];

forward ExpiraVip(playerid);

enum Data_Vip
{
ac_VIP,
ac_DIAS
};
new PLAYER_VIP[MAX_PLAYERS][Data_Vip];

public OnFilterScriptInit()
{
if (!fexist("GUARDAR_CUENTA"))
{
print(" > Error, falta la carpeta \"GUARDAR_CUENTA\" en ScriptFiles\n\n");
}
else if (fexist("GUARDAR_CUENTA"))
{
print(" > Los \"datos\" de los usuarios vip fueron cargados correctamente.\n\n");
}

SetTimer("ExpiraVip", 60000, true);
return 1;
}

public OnFilterScriptExit()
{
DOF2_Exit();
return 1;
}

public OnPlayerConnect(playerid)
{
CARGAR_CUENTA_VIP(playerid);
CreateTextDrawPlayer(playerid);

new C_VIP[250];
format(C_VIP, sizeof(C_VIP), "GUARDAR_CUENTA/Usar_Vip/%s.ini", pt_NAME_PLAYER(playerid));

if(Is_Player_Vip(playerid))
{
PLAYER_VIP[playerid][ac_DIAS] = DOF2_GetInt(C_VIP, "Dias");

if(gettime() >= PLAYER_VIP[playerid][ac_DIAS])
{
SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}Tu vida ha expirado, ya no eres un jugador vip.");
PLAYER_VIP[playerid][ac_VIP] = 0;
DOF2_RemoveFile(C_VIP);

}
else
{
PLAYER_VIP[playerid][ac_VIP] = DOF2_GetInt(C_VIP, "Vip");

if(PLAYER_VIP[playerid][ac_VIP])
{

PLAYER_VIP[playerid][ac_DIAS] = DOF2_GetInt(C_VIP, "Dias");
new str[128];
format(str, sizeof str, "{009B00}[Info] {FFFFFF}Eres un jugador VIP, tiempo restante:{009B00} %s", ConvertTime(PLAYER_VIP[playerid][ac_DIAS] - gettime()));
SendClientMessage(playerid, -1, str);

}
}
}
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
GUARDAR_CUENTA_VIP(playerid);

PlayerTextDrawHide(playerid, MENU_VIP[playerid][0]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][1]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][2]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][3]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][4]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][5]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][6]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][7]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][8]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][9]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][10]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][11]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][12]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][13]);
return 1;
}

CMD:menu(playerid)
{
if(Is_Player_Vip(playerid))
{
PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], Selecionar_Skin[playerid]);
SetPlayerSkin(playerid, Selecionar_Skin[playerid]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][0]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][1]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][2]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][3]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][4]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][5]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][6]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][7]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][8]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][9]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][10]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][11]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][12]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][13]);
SelectTextDraw(playerid, 0xFF6C00FF);
}
else SendClientMessage(playerid, -1, "No eres {009B00}VIP");
return 1;
}

CMD:vkick(playerid, params[])
{
new pID, razon[128], string[50];
if(Is_Player_Vip(playerid))
{
if(sscanf(params, "ds[128]", pID, razon)) return SendClientMessage(playerid, -1, "USE: /vkick [id] [razon]");
if(IsPlayerConnected(pID)) return SendClientMessage(playerid, -1, "ID no valida");
SendClientMessageEx(playerid, -1, "{009B00}[Info] {FFFFFF}expulsaste a %s razon %s", pt_NAME_PLAYER(pID), razon);
format(string, sizeof(string), "{009B00}[Info] {FFFFFF}El {009B00}VIP %s {FFFFFF}ha expulsado a %s razon %s", pt_NAME_PLAYER(playerid), pt_NAME_PLAYER(pID), razon);
SendClientMessageToAll(-1, string);
Kick(pID);
}
else SendClientMessage(playerid, -1, "No eres {009B00}VIP");
return 1;
}

CMD:traertodos(playerid)
{
new Float:pos[3];
if(Is_Player_Vip(playerid))
{
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
for(new id = 0; id < MAX_PLAYERS; id)
{
if(IsPlayerConnected(id))
{
SetPlayerPos(id, pos[0], pos[1], pos[2]);
SetPlayerInterior(id, GetPlayerInterior(playerid));
SetPlayerVirtualWorld(id, GetPlayerVirtualWorld(playerid));
SendClientMessage(playerid,-1, "Has traido a todos a tu posici?n.");
}
}
}
else SendClientMessage(playerid, -1, "No eres {009B00}VIP");
return 1;
}

CMD:darvip(playerid, params[])
{
new pID, C_VIP[100], DIAS_VIP;
if(IsPlayerAdmin(playerid))
{
if(sscanf(params, "iii", pID, DIAS_VIP)) return SendClientMessage(playerid, -1, "USE: /darvip [id] [dias]");
format(C_VIP, sizeof(C_VIP), "GUARDAR_CUENTA/Usar_Vip/%s.ini", pt_NAME_PLAYER(playerid));
if(DOF2_FileExists(C_VIP)) return SendClientMessage(playerid, -1, "Este jugador ya es VIP.");

DOF2_CreateFile(C_VIP);
DOF2_SetInt(C_VIP, "Dias", gettime() (60*60*24*DIAS_VIP));
DOF2_SetInt(C_VIP, "Vip", Level_Vip);
DOF2_SaveFile();
PLAYER_VIP[pID][ac_VIP] = 1;

SendClientMessageEx(pID, -1, "Se te dio {009B00}%i {FFFFFF}%s Vip", DIAS_VIP, DIAS_VIP == 1 ? ("dia") : ("dias"));
}
return 1;
}

CMD:removervip(playerid, params[])
{
new pID, C_VIP[100];

if(IsPlayerAdmin(playerid))
{
if(sscanf(params, "i", pID)) return SendClientMessage(playerid, -1, "USE: /removervip [ID]");
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, -1, "Este jugador no est? conectado.");
format(C_VIP, sizeof(C_VIP), "GUARDAR_CUENTA/Usar_Vip/%s.ini", pt_NAME_PLAYER(playerid));
if(!DOF2_FileExists(C_VIP)) return SendClientMessage(playerid, -1, "Este jugador no es VIP.");

PLAYER_VIP[pID][ac_VIP] = 0;
DOF2_RemoveFile(C_VIP);

SendClientMessageEx(playerid, -1, "{009B00}[Info] {FFFFFF}Eliminaste la cuenta vip de %s", pt_NAME_PLAYER(pID));

SendClientMessageEx(pID, -1, "{009B00}[Info] {FFFFFF}El Admin %s te elimino la cuenta vip", pt_NAME_PLAYER(playerid));
}
return 1;
}

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == MENU_VIP[playerid][4])
{
PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);
if(Selecionar_Skin[playerid] == 310) Selecionar_Skin[playerid] = 0;
{
Selecionar_Skin[playerid] ;
PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], Selecionar_Skin[playerid]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][2]);
SetPlayerSkin(playerid, Selecionar_Skin[playerid]);
}
}
else if(playertextid == MENU_VIP[playerid][3])
{
PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);
if(Selecionar_Skin[playerid] == 1) Selecionar_Skin[playerid] = 311;
{
Selecionar_Skin[playerid] --;
PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], Selecionar_Skin[playerid]);
PlayerTextDrawShow(playerid, MENU_VIP[playerid][2]);
SetPlayerSkin(playerid, Selecionar_Skin[playerid]);
}
}
else if(playertextid == MENU_VIP[playerid][5])
{
GivePlayerWeapon(playerid, 26, 5000);
GivePlayerWeapon(playerid, 24, 5000);
GivePlayerWeapon(playerid, 30, 5000);
GivePlayerWeapon(playerid, 34, 5000);
SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}se te dio armas..");
}
else if(playertextid == MENU_VIP[playerid][6])
{
CancelSelectTextDraw(playerid);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][0]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][1]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][2]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][3]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][4]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][5]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][6]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][7]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][8]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][9]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][10]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][11]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][12]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][13]);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}has creado un jetpack..");
}
else if(playertextid == MENU_VIP[playerid][7])
{
new Float:VIP_X_G, Float:VIP_Y_G, Float:VIP_Z_G, VIP_STR[60];
GetPlayerPos(playerid, VIP_X_G, VIP_Y_G, VIP_Z_G);

format(VIP_STR, sizeof(VIP_STR), "GUARDAR_CUENTA/Pos/%s.ini", pt_NAME_PLAYER(playerid));

if(!DOF2_FileExists(VIP_STR))
DOF2_CreateFile(VIP_STR);
DOF2_SetFloat(VIP_STR, "X", VIP_X_G);
DOF2_SetFloat(VIP_STR, "Y", VIP_Y_G);
DOF2_SetFloat(VIP_STR, "Z", VIP_Z_G);
DOF2_SaveFile();
SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}la posici?n actual se ha guardado..");
}
else if(playertextid == MENU_VIP[playerid][8])
{
new VIP_STR[60];
format(VIP_STR, sizeof(VIP_STR), "GUARDAR_CUENTA/Pos/%s.ini", pt_NAME_PLAYER(playerid));
if(!DOF2_FileExists(VIP_STR))
{
SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}primero debes guardar una posici?n..");
}
else
{
new Float:VIP_X = DOF2_GetFloat(VIP_STR, "X");
new Float:VIP_Y = DOF2_GetFloat(VIP_STR, "Y");
new Float:VIP_Z = DOF2_GetFloat(VIP_STR, "Z");

SetPlayerPos(playerid, VIP_X, VIP_Y, VIP_Z);
SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}has sido teletransportado..");
}
}
else if(playertextid == MENU_VIP[playerid][9])
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}se te dio vida y chaleco..");
}
else if(playertextid == MENU_VIP[playerid][13])
{
CancelSelectTextDraw(playerid);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][0]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][1]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][2]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][3]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][4]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][5]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][6]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][7]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][8]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][9]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][10]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][11]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][12]);
PlayerTextDrawHide(playerid, MENU_VIP[playerid][13]);
}
return 0;
}

public ExpiraVip(playerid)
{

if(PLAYER_VIP[playerid][ac_VIP] == 1)
{
new file[50];
format(file, sizeof(file), "GUARDAR_CUENTA/Usar_Vip/%s.ini", pt_NAME_PLAYER(playerid));
PLAYER_VIP[playerid][ac_DIAS] = DOF2_GetInt(file, "Dias");

if(gettime() >= PLAYER_VIP[playerid][ac_DIAS])
{
SendClientMessage(playerid, -1, "{009B00}[Info] {FFFFFF}Tu vida ha expirado, ya no eres un jugador {009B00}VIP.");
DOF2_RemoveFile(file);
PLAYER_VIP[playerid][ac_VIP] = 0;
}
}
return 0;
}


CARGAR_CUENTA_VIP(playerid)
{
new file[50];
format(file, sizeof(file), "GUARDAR_CUENTA/Usar_Vip/%s.ini", pt_NAME_PLAYER(playerid));
PLAYER_VIP[playerid][ac_VIP] = DOF2_GetInt(file, "Vip");
PLAYER_VIP[playerid][ac_DIAS] = DOF2_GetInt(file, "Dias");
return 1;
}

GUARDAR_CUENTA_VIP(playerid)
{
new file[50];
format(file, sizeof(file), "GUARDAR_CUENTA/Usar_Vip/%s.ini", pt_NAME_PLAYER(playerid));
if(DOF2_FileExists(file))
{
DOF2_SetInt(file, "Vip", PLAYER_VIP[playerid][ac_VIP]);
DOF2_SetInt(file, "Dias", PLAYER_VIP[playerid][ac_DIAS]);
DOF2_SaveFile();
}
return 1;
}

stock pt_NAME_PLAYER(playerid)
{
new Nombre[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nombre, sizeof(Nombre));
return Nombre;
}

stock ConvertTime(SEGUNDOS)
{
new MINUTOS_, HORAS_, DIAS_, String[200];

if(SEGUNDOS > 59)
{
MINUTOS_ = SEGUNDOS / 60;
SEGUNDOS = SEGUNDOS - MINUTOS_ * 60;
}
if(MINUTOS_ > 59)
{
HORAS_ = MINUTOS_ / 60;
MINUTOS_ = MINUTOS_ - HORAS_ * 60;
}
if(HORAS_ > 23)
{
DIAS_ = HORAS_ / 24;
HORAS_ = HORAS_ - DIAS_ * 24;
}

format(String, sizeof(String), "%02d Dias e %02d Horas e %02d Minutos e %02d Segundos", DIAS_, HORAS_, MINUTOS_, SEGUNDOS);
if(DIAS_ < 1) format(String, sizeof(String), "%02d Horas e %02d Minutos e %02d Segundos", HORAS_, MINUTOS_, SEGUNDOS);
if(DIAS_ < 1 && HORAS_ < 1) format(String, sizeof(String), "%02d Minutos e %02d Segundos", MINUTOS_, SEGUNDOS);
if(DIAS_ < 1 && HORAS_ < 1 && MINUTOS_ < 1) format(String, sizeof(String), "%02d Segundos", SEGUNDOS);

return String;
}

stock Is_Player_Vip(playerid)
{
new C_VIP[250];
format(C_VIP, sizeof(C_VIP), "GUARDAR_CUENTA/Usar_Vip/%s.ini", pt_NAME_PLAYER(playerid));
if(DOF2_FileExists(C_VIP)) return 1;
return 0;
}

CreateTextDrawPlayer(playerid)
{
MENU_VIP[playerid][0] = CreatePlayerTextDraw(playerid, 325.000000, 153.000000, "_");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][0], 1);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][0], 0.600000, 16.500017);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][0], 303.000000, 359.500000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][0], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][0], 2);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][0], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][0], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][0], 16777215);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][0], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][0], 0);

MENU_VIP[playerid][1] = CreatePlayerTextDraw(playerid, 325.000000, 155.000000, "_");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][1], 1);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][1], 0.600000, 16.000024);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][1], 303.000000, 353.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][1], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][1], 2);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][1], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][1], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][1], 1296911871);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][1], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][1], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][1], 0);

MENU_VIP[playerid][2] = CreatePlayerTextDraw(playerid, 389.000000, 154.000000, "Preview_Model");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][2], 5);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][2], 0.600000, 2.000000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][2], 112.500000, 94.500000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][2], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][2], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][2], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][2], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][2], 1433087999);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][2], 255);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][2], 0);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][2], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][2], 0);
PlayerTextDrawSetPreviewModel(playerid, MENU_VIP[playerid][2], 304);
PlayerTextDrawSetPreviewRot(playerid, MENU_VIP[playerid][2], -17.000000, 0.000000, -25.000000, 0.940000);
PlayerTextDrawSetPreviewVehCol(playerid, MENU_VIP[playerid][2], 1, 1);

MENU_VIP[playerid][3] = CreatePlayerTextDraw(playerid, 392.000000, 252.000000, "<");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][3], 3);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][3], 0.529166, 1.600000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][3], 404.500000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][3], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][3], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][3], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][3], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][3], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][3], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][3], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][3], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][3], 1);

MENU_VIP[playerid][4] = CreatePlayerTextDraw(playerid, 487.000000, 252.000000, ">");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][4], 3);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][4], 0.529166, 1.600000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][4], 498.000000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][4], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][4], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][4], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][4], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][4], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][4], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][4], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][4], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][4], 1);

MENU_VIP[playerid][5] = CreatePlayerTextDraw(playerid, 156.000000, 162.000000, "armas");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][5], 2);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][5], 0.400000, 1.000000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][5], 234.000000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][5], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][5], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][5], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][5], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][5], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][5], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][5], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][5], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][5], 1);

MENU_VIP[playerid][6] = CreatePlayerTextDraw(playerid, 156.000000, 184.000000, "jetpack");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][6], 2);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][6], 0.400000, 1.000000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][6], 234.000000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][6], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][6], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][6], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][6], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][6], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][6], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][6], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][6], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][6], 1);

MENU_VIP[playerid][7] = CreatePlayerTextDraw(playerid, 156.000000, 208.000000, "guardar_pos");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][7], 2);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][7], 0.400000, 1.000000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][7], 268.000000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][7], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][7], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][7], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][7], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][7], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][7], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][7], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][7], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][7], 1);

MENU_VIP[playerid][8] = CreatePlayerTextDraw(playerid, 156.000000, 232.000000, "ir_pos");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][8], 2);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][8], 0.400000, 1.000000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][8], 234.000000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][8], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][8], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][8], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][8], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][8], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][8], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][8], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][8], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][8], 1);

MENU_VIP[playerid][9] = CreatePlayerTextDraw(playerid, 156.000000, 255.000000, "vida_chaleco");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][9], 2);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][9], 0.400000, 1.000000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][9], 273.000000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][9], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][9], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][9], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][9], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][9], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][9], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][9], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][9], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][9], 1);

MENU_VIP[playerid][10] = CreatePlayerTextDraw(playerid, 156.000000, 278.000000, "comandos_vip");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][10], 2);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][10], 0.400000, 1.000000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][10], 275.500000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][10], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][10], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][10], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][10], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][10], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][10], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][10], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][10], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][10], 1);

MENU_VIP[playerid][11] = CreatePlayerTextDraw(playerid, 278.000000, 155.000000, "menu");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][11], 3);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][11], 0.416666, 1.200000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][11], 306.500000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][11], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][11], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][11], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][11], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][11], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][11], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][11], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][11], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][11], 0);

MENU_VIP[playerid][12] = CreatePlayerTextDraw(playerid, 319.000000, 155.000000, "vip");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][12], 3);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][12], 0.395833, 1.200000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][12], 306.500000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][12], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][12], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][12], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][12], -65281);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][12], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][12], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][12], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][12], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][12], 0);

MENU_VIP[playerid][13] = CreatePlayerTextDraw(playerid, 451.000000, 290.000000, "cerrar");
PlayerTextDrawFont(playerid, MENU_VIP[playerid][13], 3);
PlayerTextDrawLetterSize(playerid, MENU_VIP[playerid][13], 0.416666, 1.200000);
PlayerTextDrawTextSize(playerid, MENU_VIP[playerid][13], 498.000000, 17.000000);
PlayerTextDrawSetOutline(playerid, MENU_VIP[playerid][13], 0);
PlayerTextDrawSetShadow(playerid, MENU_VIP[playerid][13], 0);
PlayerTextDrawAlignment(playerid, MENU_VIP[playerid][13], 1);
PlayerTextDrawColor(playerid, MENU_VIP[playerid][13], -1);
PlayerTextDrawBackgroundColor(playerid, MENU_VIP[playerid][13], 255);
PlayerTextDrawBoxColor(playerid, MENU_VIP[playerid][13], 0);
PlayerTextDrawUseBox(playerid, MENU_VIP[playerid][13], 1);
PlayerTextDrawSetProportional(playerid, MENU_VIP[playerid][13], 1);
PlayerTextDrawSetSelectable(playerid, MENU_VIP[playerid][13], 1);
return 1;
}

SendClientMessageEx(playerid, color, form[], {Float, _}: ...)
{
#pragma unused form

static
tmp[145]
;
new
t1 = playerid,
t2 = color
;
const
n4 = -4,
n16 = -16,
size = sizeof tmp
;
#emit stack 28
#emit push.c size
#emit push.c tmp
#emit stack n4
#emit sysreq.c format
#emit stack n16

return (t1 == -1 ? (SendClientMessageToAll(t2, tmp)) : (SendClientMessage(t1, t2, tmp)) );
}
  Reply


Messages In This Thread
VIP System for gang wars/TDM - by Abraar - 2021-06-19, 05:53 PM
RE: VIP System for gang wars/TDM - by Nikolay_Staggs - 2021-07-12, 05:18 AM

Forum Jump: