Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Témák - Hunap

Oldalak: [1]
1
Segítségkérés / Vip
« Dátum: 2015. január 03. - 19:16:59 »
Sziasztok!
Segítséget szeretnék kérni ,hogy tudnám megoldani azt ,hogy ebbe a scriptbe lementse azokat az embereket akiknek VIP-t adok?
Script.
 
#include <a_samp>
#include <zcmd>
#include <sscanf>
#include <YSI\\y_ini>
#include <dini> //dini inc segítségével tudjuk menteni az adatokat
#define SPATH \"/ReportVip/%s.ini\"
#define DIALOG_VCMDS 9000
#define DIALOG_COLOR 9001
enum vInfo
{
Vip
}
new VipInfo[MAX_PLAYERS][vInfo];
new God[MAX_PLAYERS];
new VGod[MAX_PLAYERS];
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
public OnPlayerConnect(playerid)
{
God[playerid] = 0;
VGod[playerid] = 0;
return 1;
}
//============================/SETVIP===========================================
CMD:setvip(playerid, params[])
{
new ID, Level, string[128], name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
if(sscanf(params, \"ui\", ID, Level)) return SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}/SetVip [iD] [Level]\");
if(Level > 3 || Level == 0) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}Invalid Level. [1-3]\");
if(VipInfo[iD][Vip] == Level) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}That player it\'s already havin\' that {FF0000}VIP {FFFFFF}Level.\");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}Administrator {FF0000}%s {FFFFFF}has setted you {FF0000}VIP {FFFFFF}Account Level: {FF0000}%i.\", name, Level);
SendClientMessage(ID, -1, string);
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}You have setted to {FF0000}%s {FFFFFF}VIP Account Level: {FF0000}%i.\", pname, Level);
SendClientMessage(playerid, -1, string);
VipInfo[iD][Vip] = Level;
return 1;
}
//========================/REPORTVIP============================================
CMD:reportvip(playerid, params[])
{
new ID, string[128], name[MAX_PLAYER_NAME];
if(sscanf(params, \"us[128]\", ID, string)) return SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}/ReportVIP [Vip ID] [Reason]\");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}That player is not connected.\");
if(VipInfo[iD][Vip] == 0) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}That player is not {FF0000}VIP{FFFFFF}.\");
GetPlayerName(ID, name, sizeof(name));
new INI:File = INI_Open(ReportsPath(playerid));
INI_SetTag(File,\"|| VIP REPORTED ||\");
    INI_WriteString(File,\"Reported VIP Name\", name);
    INI_WriteString(File,\"Report Reason\", string);
    INI_Close(File);
return 1;
}
//=============================/VCMDS===========================================
CMD:vcmds(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 1)
{
        new pDialog[2000];
    strcat(pDialog, \"{FF0000}Level {15FF00}1;\\n\\n\", sizeof(pDialog));
    strcat(pDialog, \"{FFCC33}/VChat {FFFFFF}- Speak in VIP Chat with others {15FF00}\'Vips\'.\\n\", sizeof(pDialog));
    strcat(pDialog, \"{FFCC33}/VNos {FFFFFF}- Add {15FF00}\'NOS\' {FFFFFF}to your car.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VCarColor {FFFFFF}- Change your car\'s colors.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VKillMe {FFFFFF}- Kills yourself.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VSkin {FFFFFF}- Change your skin to another one.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VColor {FFFFFF}- Change your name\'s color.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VCar {FFFFFF}- Spawns specified car for you.\\n\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FF0000}Level {15FF00}2;\\n\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VPack {FFFFFF}- Receive {FF0000}Vip\'s {FFFFFF}pack.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VJetpack {FFFFFF}- Spawns a Jetpack.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VSpawn {FFFFFF}- Spawns yourself in a random place.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VGun {FFFFFF}- Get a Gun\'s pack.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VGoto {FFFFFF}- Teleports you to a player.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VTime {FFFFFF}- Changes your hour to specified hour.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/Weather {FFFFFF}- Changes your weather to specified weather.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VHeal {FFFFFF}- Heals yourself.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VArmour {FFFFFF}- Armours yourself.\\n\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FF0000}Level {15FF00}3;\\n\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VPack {FFFFFF}- Receive {FF0000}Vip\'s {FFFFFF}Pack.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VGod {FFFFFF}- {15FF00}Activate/{FF0000}Dezactivate {FFFFFF}GodMode.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VehGod {FFFFFF}- {15FF00}Activate/{FF0000}Dezactivate {FFFFFF}GodMode at your car.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VMini {FFFFFF}- Spawns a Minigun.\\n\", sizeof(pDialog));
        strcat(pDialog, \"{FFCC33}/VGet {FFFFFF}- Teleport a player to your position.\\n\", sizeof(pDialog));
ShowPlayerDialog(playerid, DIALOG_VCMDS, DIALOG_STYLE_MSGBOX, \"VIP Commands\", pDialog, \"Exit\", \"\");
}
else
{
    SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//-----------------------------VIP 1--------------------------------------------
CMD:vchat(playerid, params[])
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(VipInfo[playerid][Vip] >= 1)
{
if(isnull(params)) return SendClientMessage(playerid, -1, \"{FF0000}/VChat [Text]\");
for(new i = 0; i < MAX_PLAYERS; i++)
{
   if(VipInfo[Vip] >= 1)
   {
      format(string, sizeof(string), \"{FF0000}[VIP]: {15FF00}%s: {FFCC33}%s\", name, params);
      SendClientMessage(i, -1, string);
   }
}
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vkillme(playerid, params[])
{
    if(VipInfo[playerid][Vip] >= 1)
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}You have killed yourself.\");
}
else
{
       SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vnos(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 1)
{
new veh;
veh = GetPlayerVehicleID(playerid);
AddVehicleComponent(veh, 1077);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You need to be in a vehicle to use this command.\");
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You added {FF0000}\'NOS\' {FFFFFF}at your car.\");
}
else
{
       SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vcarcolor(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 1)
{
new Col1, Col2, vehicle, string[128];
vehicle = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You need to be in a vehicle to use this command.\");
if(sscanf(params, \"dd\", Col1, Col2)) return SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}/CarColor [Color 1] [Color 2]\");
ChangeVehicleColor(vehicle, Col1, Col2);
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}You changed your vehicle\'s: {FF0000}%i {FFFFFF}color to: {FF0000}%d, %d.\", vehicle, Col1, Col2);
SendClientMessage(playerid, -1, string);
}
else
{
       SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vskin(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 1)
{
new Skin, string[128];
if(sscanf(params, \"i\", Skin)) return SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}/VSkin [skin ID]\");
if(Skin > 299) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}Invalid Skin. [0-299]\");
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}You succesfully changed your skin to: {FF0000}%i.\", Skin);
SendClientMessage(playerid, -1, string);
}
else
{
       SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vcolor(playerid, params[])
{
    if(VipInfo[playerid][Vip] >= 1)
{
    ShowPlayerDialog(playerid, DIALOG_COLOR, DIALOG_STYLE_LIST, \"Change your color\", \"{FF0000}Red\\n{0066CC}Blue\\n{FFFFFF}White\\n{FFCC33}Orange\\n{FFFF00}Yellow\\n{15FF00}Green\", \"Change\", \"Exit\");
}
else
{
       SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vcar(playerid, params[])
{
    if(VipInfo[playerid][Vip] >= 1)
{
new Float:X, Float:Y, Float:Z, Float:A, Model, Color1, Color2;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
if(sscanf(params, \"idd\", Model, Color1, Color2)) return SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}/Car [Model] [Color 1] [Color 2]\");
AddStaticVehicle(Model, X, Y, Z, A, Color1, Color2);
}
else
{
       SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//-----------------------------VIP 2--------------------------------------------
CMD:vpack(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 2)
{
       Pack(playerid);
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vjetpack(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 2)
{
       SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
       SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You succesfully spawned a jetpack.\");
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vspawn(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 2)
{
       SpawnPlayer(playerid);
       SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You succesfully got spanwed in a random place.\");
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vgun(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 2)
{
       GivePlayerWeapon(playerid, 24, 9999);
    GivePlayerWeapon(playerid, 28, 9999);
    GivePlayerWeapon(playerid, 30, 9999);
    GivePlayerWeapon(playerid, 34, 9999);
    SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You received {FF0000}VIP\'s {FFFFFF}guns.\");
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vgoto(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 2)
{
new ID, string[128], Float:X, Float:Y, Float:Z, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME];
if(sscanf(params, \"u\", ID)) return SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}/VGoto [iD]\");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}That player isn\'t connected.\");
if(ID == playerid) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You can\'t teleport to yourself.\");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(ID, pname, sizeof(pname));
GetPlayerPos(ID, X, Y, Z);
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}VIP Player {FF0000}%s {FFFFFF}has teleported to you.\", name);
SendClientMessage(ID, -1, string);
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}You have been teleported to {FF0000}%s {FFFFFF}.\", pname);
SendClientMessage(playerid, -1, string);
SetPlayerPos(playerid, X, Y, Z+2);
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vtime(playerid, params[])
{
    if(VipInfo[playerid][Vip] >= 2)
{
new time, string[128];
if(sscanf(params, \"d\", time)) return SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}/VTime [Time]\");
if(time > 24) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}Invalid hour. [0-24]\");
SetPlayerTime(playerid, time, 0);
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}You have changed your hour to: {FF0000}%d.\", time);
SendClientMessage(playerid, -1, string);
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:weather(playerid, params[])
{
    if(VipInfo[playerid][Vip] >= 2)
{
new weather, string[128];
if(sscanf(params, \"d\", weather)) return SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}/Weather [Weather ID]\");
if(weather > 44) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}Invalid weather. [0-44]\");
SetPlayerWeather(playerid, weather);
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}You have changed your weather to: {FF0000}%d.\", weather);
SendClientMessage(playerid, -1, string);
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vheal(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 2)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You have healed yourself.\");
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:varmour(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 2)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You have armoured yourself.\");
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//-----------------------------VIP 3--------------------------------------------
CMD:vgod(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 3)
{
if(God[playerid] == 0)
{
   GodLike(playerid, 1);
   God[playerid] = 1;
}
else if(God[playerid] == 1)
{
   GodLike(playerid, 0);
   God[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vehgod(playerid, params[])
{
    if(VipInfo[playerid][Vip] >= 3)
{
if(VGod[playerid] == 0)
{
        VehGodLike(playerid, 1);
   VGod[playerid] = 1;
}
else if(VGod[playerid] == 1)
{
   VehGodLike(playerid, 0);
   VGod[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vmini(playerid, params[])
{
    if(VipInfo[playerid][Vip] >= 3)
{
GivePlayerWeapon(playerid, 38, 9999);
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vget(playerid, params[])
{
if(VipInfo[playerid][Vip] >= 3)
{
new ID, string[128], Float:X, Float:Y, Float:Z, name[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME];
if(sscanf(params, \"u\", ID)) return SendClientMessage(playerid, -1, \"{FF0000}USAGE: {FFFFFF}/VGet [iD]\");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}That player isn\'t connected.\");
if(ID == playerid) return SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You can\'t teleport to yourself to yourself.\");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(ID, pname, sizeof(pname));
GetPlayerPos(playerid, X, Y, Z);
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}VIP Player {FF0000}%s {FFFFFF}has teleported you to his location.\", name);
SendClientMessage(ID, -1, string);
format(string, sizeof(string), \"{FF0000}[iNFO]: {FFFFFF}You teleported {FF0000}%s {FFFFFF}to your location.\", pname);
SendClientMessage(playerid, -1, string);
SetPlayerPos(ID, X, Y, Z+2);
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//------------------------------------------------------------------------------
CMD:vipmenu(playerid, params)
{
    if(VipInfo[playerid][Vip] >= 3)
{
Show(playerid);
SelectTextDraw(playerid, 0xFFFFFFFF);
}
else
{
SendClientMessage(playerid, -1, \"{FF0000}ERROR: {FFFFFF}You are not authorized to use this command.\");
}
return 1;
}
//==============================================================================
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw2)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You have been healed.\");
}
else if(clickedid == Textdraw3)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You have been armoured.\");
}
else if(clickedid == Textdraw4)
{
        if(God[playerid] == 0)
{
   GodLike(playerid, 1);
   God[playerid] = 1;
}
else if(God[playerid] == 1)
{
   GodLike(playerid, 0);
   God[playerid] = 0;
}
}
else if(clickedid == Textdraw5)
{
    if(VGod[playerid] == 0)
{
        VehGodLike(playerid, 1);
   VGod[playerid] = 1;
}
else if(VGod[playerid] == 1)
{
   VehGodLike(playerid, 0);
   VGod[playerid] = 0;
}
}
else if(clickedid == Textdraw6)
{
Pack(playerid);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You got weapons.\");
}
else if(clickedid == Textdraw7)
{
Pack(playerid);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You got VIP Pack.\");
}
else if(clickedid == Textdraw8)
{
Hide(playerid);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You closed {FF0000}Vip\'s {FFFFFF}menu.\");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_COLOR)
{
if(response)
{
   if(listitem == 0)
   {
      SetPlayerColor(playerid, 0xFF0000FF);
      SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}Color {FF0000}changed.\");
   }
   if(listitem == 1)
   {
      SetPlayerColor(playerid, 0x0066CCFF);
      SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}Color {0066CC}changed.\");
   }
   if(listitem == 2)
   {
      SetPlayerColor(playerid, 0xFFFFFFFF);
      SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}Color {FFFFFF}changed.\");
   }
   if(listitem == 3)
   {
      SetPlayerColor(playerid, 0xFFCC33FF);
      SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}Color {FFCC33}changed.\");
   }
   if(listitem == 4)
   {
      SetPlayerColor(playerid, 0xFFFF00FF);
      SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}Color {FFFF00}changed.\");
   }
   if(listitem == 5)
   {
      SetPlayerColor(playerid, 0x15FF00FF);
      SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}Color {15FF00}changed.\");
   }
}
}
return 1;
}
public OnFilterScriptInit()
{
Textdraw0 = TextDrawCreate(643.599914, 140.379989, \"usebox\");
TextDrawLetterSize(Textdraw0, 0.000000, 33.781108);
TextDrawTextSize(Textdraw0, 374.799957, 0.000000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 0);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 102);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 0);
Textdraw1 = TextDrawCreate(442.399963, 132.906600, \"Vip Menu\");
TextDrawLetterSize(Textdraw1, 0.670800, 3.153066);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 16777215);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 1);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 2);
TextDrawSetProportional(Textdraw1, 1);
Textdraw2 = TextDrawCreate(385.600006, 200.853256, \"1. Heal\");
TextDrawLetterSize(Textdraw2, 0.617999, 2.324267);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, -1);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 1);
TextDrawBackgroundColor(Textdraw2, 51);
TextDrawFont(Textdraw2, 2);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetSelectable(Textdraw2, true);
Textdraw3 = TextDrawCreate(383.199981, 229.226593, \"2. Armour\");
TextDrawLetterSize(Textdraw3, 0.494000, 2.152533);
TextDrawTextSize(Textdraw3, -228.800003, -74.666664);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, -1);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 1);
TextDrawBackgroundColor(Textdraw3, 51);
TextDrawFont(Textdraw3, 2);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetSelectable(Textdraw3, true);
Textdraw4 = TextDrawCreate(381.600097, 258.346649, \"3. GodMode\");
TextDrawLetterSize(Textdraw4, 0.518799, 2.077867);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, -1);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 1);
TextDrawBackgroundColor(Textdraw4, 51);
TextDrawFont(Textdraw4, 2);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetSelectable(Textdraw4, true);
Textdraw5 = TextDrawCreate(383.999938, 288.213317, \"4. Vehicle GodMode\");
TextDrawLetterSize(Textdraw5, 0.435599, 2.174932);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, -1);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 1);
TextDrawBackgroundColor(Textdraw5, 51);
TextDrawFont(Textdraw5, 2);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetSelectable(Textdraw5, true);
Textdraw6 = TextDrawCreate(383.999969, 318.826660, \"5. Guns\");
TextDrawLetterSize(Textdraw6, 0.497200, 2.197334);
TextDrawAlignment(Textdraw6, 1);
TextDrawColor(Textdraw6, -1);
TextDrawSetShadow(Textdraw6, 0);
TextDrawSetOutline(Textdraw6, 1);
TextDrawBackgroundColor(Textdraw6, 51);
TextDrawFont(Textdraw6, 2);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetSelectable(Textdraw6, true);
Textdraw7 = TextDrawCreate(383.999969, 347.199951, \"6. Vip Pack\");
TextDrawLetterSize(Textdraw7, 0.485999, 2.174932);
TextDrawAlignment(Textdraw7, 1);
TextDrawColor(Textdraw7, -1);
TextDrawSetShadow(Textdraw7, 0);
TextDrawSetOutline(Textdraw7, 1);
TextDrawBackgroundColor(Textdraw7, 51);
TextDrawFont(Textdraw7, 2);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetSelectable(Textdraw7, true);
Textdraw8 = TextDrawCreate(573.600158, 430.080017, \"Close\");
TextDrawLetterSize(Textdraw8, 0.464399, 1.943466);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, -5963521);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 1);
TextDrawBackgroundColor(Textdraw8, 51);
TextDrawFont(Textdraw8, 2);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetSelectable(Textdraw8, true);
Textdraw9 = TextDrawCreate(641.199951, 435.313323, \"usebox\");
TextDrawLetterSize(Textdraw9, 0.000000, 1.176666);
TextDrawTextSize(Textdraw9, 564.400024, 0.000000);
TextDrawAlignment(Textdraw9, 1);
TextDrawColor(Textdraw9, 0);
TextDrawUseBox(Textdraw9, true);
TextDrawBoxColor(Textdraw9, 102);
TextDrawSetShadow(Textdraw9, 0);
TextDrawSetOutline(Textdraw9, 0);
TextDrawFont(Textdraw9, 0);
return 1;
}
stock ReportsPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),SPATH,playername);
    return string;
}
stock Pack(playerid)
{
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    GivePlayerWeapon(playerid, 24, 9999);
    GivePlayerWeapon(playerid, 28, 9999);
    GivePlayerWeapon(playerid, 30, 9999);
    GivePlayerWeapon(playerid, 34, 9999);
    SetPlayerSkin(playerid, 217);
    SetPlayerColor(playerid, 0xFF0000FF);
    SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You received {FF0000}VIP\'s {FFFFFF}pack.\");
}
stock GodLike(playerid, type)
{
if(type == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You have disabled {FF0000}\'GodMode\'\");
}
else if(type == 1)
{
        SetPlayerHealth(playerid, 9999999999);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You have activated {FF0000}\'GodMode\'\");
}
}
stock VehGodLike(playerid, type)
{
if(type == 0)
{
SetVehicleHealth(playerid, 100);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You have disabled {FF0000}\'GodMode\' {FFFFFF}at your car.\");
}
else if(type == 1)
{
        SetVehicleHealth(playerid, 9999999999);
SendClientMessage(playerid, -1, \"{FF0000}[iNFO]: {FFFFFF}You have activated {FF0000}\'GodMode\' {FFFFFF}at your car.\");
}
}
stock Show(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw8);
TextDrawShowForPlayer(playerid, Textdraw9);
}
stock Hide(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw8);
TextDrawHideForPlayer(playerid, Textdraw9);
}

 
Válaszotokat előre köszönöm .

Oldalak: [1]
SimplePortal 2.3.7 © 2008-2024, SimplePortal