Vehicle Ownership Issue
#1

i am using United RP GAmemode In This GameMod The Vehicle Ownership system has limit i can only buy 3 cars its like non rp i want to delete the limit so anyone please explain me how i do that

gamemode files


http://www.mediafire.com/download/2y...2ql37/U-RP.amx
http://www.mediafire.com/download/qd...yaggn/U-RP.pwn
Reply
#2

Do you really think we would download the gamemode and show you where to do that, absolutely not, download it yourself, try to show as much code as possible which is related to this .
Reply
#3

i dont know which is vehicle system code in gamemode please anyone can fix my this problem
Reply
#4

c'mon man find it in any Definitions, write the Definitions here.
Like for example, #define blahblah 30
Reply
#5

see this

Quote:

//---------------------------------[O.3c Colors]-------------------------//
#define COL_EASY "{FFF1AF}"
#define COL_WHITE "{FFFFFF}"
#define COL_BLACK "{0E0101}"
#define COL_GREY "{C3C3C3}"
#define COL_NICEGREEN "{6EF83C}"
#define COL_RED "{A80000}"
#define COL_NICERED "{F81414}"
#define COL_YELLOW "{F3FF02}"
#define COL_YELLOW2 "{DAE368}"
#define COL_BYELLOW "{FFFF80}"
#define COL_ORANGE "{FFAF00}"
#define COL_LIME "{B7FF00}"
#define COL_CYAN "{00FFEE}"
#define COL_LIGHTBLUE "{00C0FF}"
#define COL_BLUE "{0049FF}"
#define COL_MAGENTA "{F300FF}"
#define COL_VIOLET "{B700FF}"
#define COL_PINK "{FF00EA}"
#define COL_MARONE "{A90202}"
#define COL_CMD "{B8FF02}"
#define COL_PARAM "{3FCD02}"
#define COL_SERVER "{AFE7FF}"
#define COL_VALUE "{A3E4FF}"
#define COL_RULE "{F9E8B7}"
#define COL_RULE2 "{FBDF89}"
#define COL_RWHITE "{FFFFFF}"
#define COL_LGREEN "{C9FFAB}"
#define COL_LRED "{FFA1A1}"
#define COL_LRED2 "{C77D87}"
#define COL_GREEN "{00BC2E}"
#define COL_LBLUE "{00A5FF}"
#define EMBED_WHITE "{6422DD}"
#define DARK_PURPLE "{800040}"
#define BIZ_HEX "{F5DEB3}"
#define GARAGE_HEX "{FFA500}"
#define COL_VIP "{630469}"
#define COL_NEWBIE "{5B9CBB}"
//----------------------------------------[Single-Name Colors]------------------//
#define ADMINCHAT 0x00FF00FF
#define ILLEGAL 0xE1B0B0FF
#define GREY1 0xB4B5B7FF
#define GREY2 0xBFC0C2FF
#define GREY3 0xCBCCCEFF
#define GREY4 0xD8D8D8FF
#define GREY5 0xE3E3E3FF
#define GREY6 0xF0F0F0FF
#define GREY 0xAFAFAFFF
#define GREEN 0x33AA33FF
#define RED 0xAA3333FF
#define BLACK 0x000001FF
#define BLUE 0x007BD0FF
#define LIGHTORANGE 0xFFA100FF
#define FLASH 0xFF000080
#define COLOR_BLUE 0x2641FEAA
#define LIGHTRED 0xFF6347FF
#define LIGHTBLUE 0x33CCFFFF
#define LIGHTGREEN 0x9ACD32FF
#define YELLOW 0xFFFF00FF
#define LIGHTYELLOW 0xFFFF91FF
#define YELLOW2 0xF5DEB3FF
#define WHITE 0xFFFFFFFF
#define FADE1 0xE6E6E6E6
#define FADE2 0xC8C8C8C8
#define FADE3 0xAAAAAAFF
#define FADE4 0x8C8C8C8C
#define FADE5 0x6E6E6E6E
#define PURPLE 0xC2A2DAAA
#define DBLUE 0x2641FEFF
#define DOC 0xFF8282FF
#define DCHAT 0xF0CC00FF
#define NEWS 0xFFA500FF
#define OOC 0xE0FFFFFF
#define TEAM_BLUE_COLOR 0x8D8DFF00
#define TEAM_GROVE_COLOR 0x00AA00FF
#define TEAM_AZTECAS_COLOR 0x01FCFFC8
#define NEWBIE_COLOR 0x7DAEFFFF
#define HOUSETEXT 0xBDB388FF
#define ORANGE 0xFF8300FF
#define SAMP_COLOR 0xAAC4E5FF
#define BIZ 0xE85D00FF
//----------------------------------------[Colors]------------------------------//
#define green 0x45E01FFF
#define COLOR_NICERED 0xFF0000FF
#define COLOR_VIP 0xECFF0000
#define COLOR_NICEGREEN 0x00FF00FF
#define TEAM_TAXI_COLOR 0xFFFF5000
#define COL_NEWBIEB 0x5B9CBBFF
#define COLOR_BITEM 0xE1B0B0FF
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_CAR 0x7DAEFFFF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_DEV 0xFFFF91FF
#define COLOR_ADMIN 0xB2EBE0AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_LIGHTYELLOW 0xFFFF91FF
#define COL_FORUM 0x808000C8
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_TAN 0xD2B48CFF
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_CHAT1 0xF9B7FFAA
#define COLOR_CHAT2 0xE6A9ECAA
#define COLOR_CHAT3 0xC38EC7AA
#define COLOR_CHAT4 0xD2B9D3AA
#define COLOR_CHAT5 0xC6AEC7AA
#define TEAM_CYAN_COLOR 0xFF8282AA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_DOC 0xFF8282AA
#define COLOR_DCHAT 0xF0CC00FF
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0xE0FFFFAA
#define COLOR_ORANGE 0xFF9900AA
#define TEAM_BLUE_COLOR 0x8D8DFF00
#define TEAM_GROVE_COLOR 0x00AA00FF
#define ENT_COLOR 0xFF6347FF
#define TEAM_AZTECAS_COLOR 0x01FCFFC8
#define COLOR_TEAL 0x00AAAAAA
#define COLOR_OFFWHITE 0xF5DEB3AA
#define COLOR_DARKAQUA 0x83BFBFAA
#define NEWBIE_COLOR 0x7DAEFFFF
#define TPARAMEDIC 0xFF828200
#define SCOLOR_RED 0xD9000000
#define SCOLOR_PINK 0xFE81FE00
#define SCOLOR_ORANGE 0xFF6A2200
#define SCOLOR_YELLOW 0xF0F00000
#define SCOLOR_CYAN 0x00E6E600
#define SCOLOR_GREEN 0x00CA0000
#define SCOLOR_BLUE 0x0058B000
#define SCOLOR_BLACK 0x00000000
#define SCOLOR_WHITE 0xFFFFFF00
#define SCOLOR_MARKER 0xD90000FF
#define TBLUE 0x2641FE00
#define GARAGE_COLOR 0xFFA500FF
//-------------------------------------[Defines]-----------------------------//
#define MAX_FAMVEHICLES 140
#define MAX_DYNAMIC_OBJECTS (2000)
#define MAX_ROADBLOCKS 100
#define MAX_ENTRANCES (600)
#define MAX_GATES (800)
#define TYPE_ENTRANCE (7)
#define TYPE_GATE (5)
#define MAX_MONEYBAGS (150)
#define TYPE_GARAGE (3)
#define TYPE_OBJECT (4)
#define TYPE_FACGATE (6)
#define TYPE_FAMGATE (10)
#define MAX_DRIVETHRUS (50)
#define MAX_FACGATES (65)
#define MAX_FAMGATES (32)
#define VIPSKINMENU 13337
#define MAX_PLATE_LENGTH 12
#define VIPNUMBERCHANGEMENU 13338
#define SASD1 1305
#define SASD2 1304
#define SPECIAL_ACTION_PISSING 68
#define MAX_SPIKESTRIPS 200
#define MAX_MAPICONS 100
#undef MAX_VEHICLES
#define MAX_CCTVS 100
#define MAX_CCTVMENUS 10
#define MAX_POINTS (9)
#define MAX_VEHICLES 500
#define MAX_STRING 255
#define MAX_HOUSES 1000
#define MAX_SPEED_WARNINGS 3
#define MAX_BUSINESSES 1000
#define MAX_ROADBLOCKS 1000
#define MAX_GARAGES (1000)
#define MAX_ATM 1000
#define MAX_MAPB 1000
#define MAX_GSTATION 1000
#define MAX_HSSIGN 1000
#define MAX_OOCSHOP 1000
#define MAX_InfoBoard 1000
#define MAX_BUILDINGS 1000
#define MAX_DIVISIONS (5)
#define MAX_MOTELS 1000
#define BUSINESSES_INT 5000
#define MAX_STRING 255
// Radio System
#define USE_TEXTDRAW_SET 2
#define MAX_RADIO_STATIONS 20
#define TEXTDRAW_DISAPPEAR_TIME 999999
#define NAME_SIZE 30
#define LINK_SIZE 70
#define GetVehicleRadioStation(%1) v_VehicleInfo[%1][RadioPlaying]
#define DIALOG_GPS 1041
//Boombox Dialog
#define DIALOG_BOOMBOX 31997
#define DIALOG_BOOMBOX1 31998
#define DIALOG_BOOMBOX2 31999
#define DIALOG_BOOMBOX3 32000
#define DIALOG_BOOMBOX4 32001
#define DIALOG_BOOMBOX5 32002
#define DIALOG_BOOMBOX6 32003
#define DIALOG_BOOMBOX7 32004
#define DIALOG_OOCSHOP 32546
#define CHECKPOINT_NONE 0
#define CHECKPOINT_HOME 12
#define CHECKPOINT_HITMAN 123
#pragma tabsize 0
#pragma dynamic 100000
//----------------------------------------------------//
#define DEFAULT_TIMEOUT (5000) // Equals to 5 seconds
#define isnull(%1) \
((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJ ECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_ OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTAC HED_OBJECTS-1)
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
//-------------------------------------------[MENUS]---------------------------------//
#define SASDSKINMENU 671
#define DIALOG_SERVERCTRL 32580
#define DIALOG_CHANGEHOSTNAME 32581
#define DIALOG_CHANGEMAPNAME 32582
#define DIALOG_CHANGEURL 32583
#define DIALOG_LOCKSERVER 32584
#define DIALOG_UNLOCKSERVER 32585
#define DIALOG_CHANGERCON 32586
#define DIALOG_RESOURCES_MENU 21750
#define DIALOG_RESOURCES_INTERIOR 21751
#define DIALOG_RESOURCES_VEHICLE 21752
//#define DMMENU 1309
//#define OOCMENU 1308
#define SEXMENU 1335
//#define PGMENU 1431
//#define CKMENU 1232
//#define PCMENU 3641*/
#define AGEMENU 5625
#define HOUSES_INT 6000
#define CHOUSES_INT 2121
#define MAX_TRUNK_SLOTS (6) // Is actually 4.
#define MAX_VEHICLE_MODELS (200)
#define MAX_PLYVEH_RATIO (50) // per player.
#define BUSINESSES_INT 5000
#define SKINMENU 1318
#define UPGRADEMENU6 1313
#define UPGRADEMENU5 1312
#define UPGRADEMENU4 1311
#define UPGRADEMENU3 1310
#define DIALOG_UPDATES (30000)
#define UM2 1309
#define UPGRADEMENU1 1308
#define mapmenu 6767
#define FBI2 1307
#define FBI1 1306
#define VEHMENU3 1305
#define VEHMENU2 1304
#define VEHMENU1 1303
#define CARMENU 1302
#define CARMENU2 1301
#define CARMENU3 1300
#define CARMENU4 1299
#define CARMENU5 1298
#define CARMENU6 1297
#define CARMENU7 1296
#define CARMENU8 1295
#define CARMENU9 1294
#define DMVMENU 1333
#define DSVMENU 1334
#define CARMENU10 1293
#define CARMENU11 1292
#define CARMENU12 1291
#define CARMENU13 1290
#define CARMENU14 1289
//--------------------------------------[TEAM COLORS]--------------------------------//
#define TCOLOR_VIP 0xECFF0000
#define TCOLOR_WHITE 0xFFFFFF00
#define TCOLOR_LIGHTGREEN 0x9ACD3200
#define TCOLOR_NAVYBLUE 0x8D8DFF00
#define TCOLOR_BEIGE 0xA5937000
#define TCOLOR_GREY 0xBFC0C200
#define TCOLOR_DARKGREY 0x52545900
#define TCOLOR_BLUE 0x2641FE00
#define TCOLOR_LIGHTBLUE 0x2B77A100
#define TCOLOR_YELLOW 0xFFFF0000
#define TCOLOR_HELP 0x00D700FF
#define TCOLOR_FIND 0x9B0000AA
#define TCOLOR_WANTED 0xFF0000AA
#define TCOLOR_PRISON 0xF4A41900
#define TCOLOR_HOSPITAL 0xAFAFAF00
#define TCOLOR_PARAMEDIC 0xFF828200
//--------------------------------------[TURF WAR]------------------------------------
/*#define COLOR_TWWHITE 0xFFFFFFAA
#define COLOR_TWYELLOW 0xFFFF00AA
#define COLOR_TWPINK 0xE75480AA
#define COLOR_TWRED 0xFF0000AA
#define COLOR_TWBROWN 0x654321AA
#define COLOR_TWGRAY 0x808080AA
#define COLOR_TWOLIVE 0x808000AA
#define COLOR_TWPURPLE 0x800080AA
#define COLOR_TWTAN 0xD2B48CAA
#define COLOR_TWAQUA 0x00FFFFAA
#define COLOR_TWORANGE 0xFF8C00AA
#define COLOR_TWAZURE 0x007FFFAA
#define COLOR_TWGREEN 0x008000AA
#define COLOR_TWBLUE 0x0000FFAA
#define COLOR_TWBLACK 0x000000AA
#define TW_WAITDELAY 5 // TESTING*/
//--------------------------------------[Fire System]---------------------------------/
#define MAX_FLAMES 100 // maxmimal flames
#define BurnOthers // Should other players burn, too, if they are touching a burning player?
#define FireMessageColor 0x00FF55FF // color used for the extinguish-message

#define FLAME_ZONE 1.2 // radius in which you start burning if you're too close to a flame
#define ONFOOT_RADIUS 1.5 // radius in which you can extinguish the flames by foot
#define PISSING_WAY 2.0 // radius in which you can extinguish the flames by peeing
#define CAR_RADIUS 8.0 // radius in which you can extinguish the flames by firetruck/SWAT Van
#define Z_DIFFERENCE 2.5 // height which is important for the accurancy of extinguishing. please do not change
#define EXTINGUISH_TIME_VEHICLE 1 // time you have to spray at the fire with a firetruck (seconds)
#define EXTINGUISH_TIME_ONFOOT 4 // time you have to spray at the fire onfoot (seconds)
#define EXTINGUISH_TIME_PEEING 10 // time you have to pee at the fire (seconds)
#define EXTINGUISH_TIME_PLAYER 3 // time it takes to extinguish a player (seconds)
#define FIRE_OBJECT_SLOT 1 // the slot used with SetPlayerAttachedObject and RemovePlayerAttachedObject
//---------------------------------------[Locations]----------------------------------//
#if defined LOS_SANTOS
#define LocationGet IsLocationLosSantos
#endif
#if defined SAN_FIERRO
#define LocationGet IsLocationSanFierro
#endif
#if defined LAS_VENTURAS
#define LocationGet IsLocationLasVenturas
#endif
//---------------------------------------[PayPhone]-----------------------------------//
#define DACCT32 2137
#define DACCT33 2138
//------------------------------------------[SPEC]-------------------------------------//
#define ADMIN_SPEC_TYPE_NONE 0
#define ADMIN_SPEC_TYPE_PLAYER 1
new
hostname[128],
mapname[128],
weburl[128],
rconpass[128],
boolerver_locked;
#define EX_SPLITLENGTH 118
new Text3D:mDutyText[MAX_PLAYERS];

Reply
#6

I think it's not there, try to find it in New Variables.
Reply
#7

:O It too longer
Reply
#8

where is New Variables. ??
Reply
#9

pawn Код:
new Test;
That is a new variable, no one will fix this for you, buddy! Don't use a script you don't understand.
Reply
#10

check this

Quote:

if(dialogid == SECOND_LOCK_DIALOG)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][PlayerVehicleModel1] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock1] = 1;
PlayerInfo[playerid][pVehLocked1] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID1[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID1[playerid]][VehicleLocked] = 0;
}
case 1:
{
if(PlayerInfo[playerid][PlayerVehicleModel2] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock2] = 1;
PlayerInfo[playerid][pVehLocked2] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID2[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID2[playerid]][VehicleLocked] = 0;
}
case 2:
{
if(PlayerInfo[playerid][PlayerVehicleModel3] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock3] = 1;
PlayerInfo[playerid][pVehLocked3] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID3[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID3[playerid]][VehicleLocked] = 0;
}
case 3:
{
if(PlayerInfo[playerid][PlayerVehicleModel4] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock4] = 1;
PlayerInfo[playerid][pVehLocked4] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID4[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID4[playerid]][VehicleLocked] = 0;
}
case 4:
{
if(PlayerInfo[playerid][PlayerVehicleModel5] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 5000;
GivePlayerMoney(playerid,-5000);
PlayerInfo[playerid][pVehLock5] = 1;
PlayerInfo[playerid][pVehLocked5] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an industrial lock for your vehicle.");
VehicleInfo[PlayerVehicleID5[playerid]][VehicleLock] = 1;
VehicleInfo[PlayerVehicleID5[playerid]][VehicleLocked] = 0;
}
}
}
}
if(dialogid == THIRD_LOCK_DIALOG)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][PlayerVehicleModel1] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock1] = 2;
PlayerInfo[playerid][pVehLocked1] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID1[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID1[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID1[playerid]);
}
case 1:
{
if(PlayerInfo[playerid][PlayerVehicleModel2] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock2] = 2;
PlayerInfo[playerid][pVehLocked2] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID2[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID2[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID2[playerid]);
}
case 2:
{
if(PlayerInfo[playerid][PlayerVehicleModel3] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock3] = 2;
PlayerInfo[playerid][pVehLocked3] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID3[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID3[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID3[playerid]);
}
case 3:
{
if(PlayerInfo[playerid][PlayerVehicleModel4] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock4] = 2;
PlayerInfo[playerid][pVehLocked4] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID4[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID4[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID4[playerid]);
}
case 4:
{
if(PlayerInfo[playerid][PlayerVehicleModel5] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You got no car at this slot.");
return 1;
}
PlayerInfo[playerid][pCash] -= 10000;
GivePlayerMoney(playerid,-10000);
PlayerInfo[playerid][pVehLock5] = 2;
PlayerInfo[playerid][pVehLocked5] = 0;
SendClientMessage(playerid,COLOR_YELLOW," You bought an electrical lock for your vehicle.");
VehicleInfo[PlayerVehicleID5[playerid]][VehicleLock] = 2;
VehicleInfo[PlayerVehicleID5[playerid]][VehicleLocked] = 0;
UnLockCar(PlayerVehicleID5[playerid]);
}
}
}
}
if(dialogid == 5445)
{
if(response)
{
switch(listitem)
{
case 0:
{
if(PlayerVehicleID1[playerid] != 0)
{
chosenveh[playerid] = 1;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
case 1:
{
if(PlayerVehicleID2[playerid] != 0)
{
chosenveh[playerid] = 2;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
case 2:
{
if(PlayerVehicleID3[playerid] != 0)
{
chosenveh[playerid] = 3;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
case 3:
{
if(PlayerVehicleID4[playerid] != 0)
{
chosenveh[playerid] = 4;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
case 4:
{
if(PlayerVehicleID5[playerid] != 0)
{
chosenveh[playerid] = 5;
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the "#COL_GREEN" color 1 "#COL_WHITE"for the car","Choose","Cancel");
}
}
}
}
}
if(dialogid == 5446)
{
if(response)
{
if(strval(inputtext) >= 0 && strval(inputtext) < 127)
{
if(chosenveh[playerid] == 1)
{
ChangeVehicleColor(PlayerVehicleID1[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle1Color2]);
PlayerInfo[playerid][pPlayerVehicle1Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
if(chosenveh[playerid] == 2)
{
ChangeVehicleColor(PlayerVehicleID2[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle2Color2]);
PlayerInfo[playerid][pPlayerVehicle2Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
if(chosenveh[playerid] == 3)
{
ChangeVehicleColor(PlayerVehicleID3[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle3Color2]);
PlayerInfo[playerid][pPlayerVehicle3Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
if(chosenveh[playerid] == 4)
{
ChangeVehicleColor(PlayerVehicleID4[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle4Color2]);
PlayerInfo[playerid][pPlayerVehicle4Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
if(chosenveh[playerid] == 5)
{
ChangeVehicleColor(PlayerVehicleID5[playerid],strval(inputtext),PlayerInfo[playerid][pPlayerVehicle5Color2]);
PlayerInfo[playerid][pPlayerVehicle5Color] = strval(inputtext);
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_INPUT, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2," Invalid color ID !(0-126)");
ShowPlayerDialog(playerid, 5446, DIALOG_STYLE_INPUT,"Change color", "Choose the color 1 for the car","Choose","Cancel");
}
}
}
if(dialogid == 5447)
{
if(response)
{
if(strval(inputtext) >= 0 && strval(inputtext) < 127)
{
if(chosenveh[playerid] == 1)
{
ChangeVehicleColor(PlayerVehicleID1[playerid],PlayerInfo[playerid][pPlayerVehicle1Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle1Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
if(chosenveh[playerid] == 2)
{
ChangeVehicleColor(PlayerVehicleID2[playerid],PlayerInfo[playerid][pPlayerVehicle2Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle2Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
if(chosenveh[playerid] == 3)
{
ChangeVehicleColor(PlayerVehicleID3[playerid],PlayerInfo[playerid][pPlayerVehicle3Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle3Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
if(chosenveh[playerid] == 4)
{
ChangeVehicleColor(PlayerVehicleID4[playerid],PlayerInfo[playerid][pPlayerVehicle4Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle4Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
if(chosenveh[playerid] == 5)
{
ChangeVehicleColor(PlayerVehicleID5[playerid],PlayerInfo[playerid][pPlayerVehicle5Color],strval(inputtext));
PlayerInfo[playerid][pPlayerVehicle5Color2] = strval(inputtext);
PlayerInfo[playerid][pCash] -= 2500;
GivePlayerMoney(playerid, -2500);
SendClientMessage(playerid, -1," Car color successfully changed($2500) !");
chosenveh[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2," Invalid color ID !(0-127)");
ShowPlayerDialog(playerid, 5447, DIALOG_STYLE_MSGBOX, "Change color", "Choose the "#COL_RED" color 2 "#COL_WHITE"for the car","Choose","Cancel");
}
}
}
if(dialogid == 11111)
{
new string[256];
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(PlayerVehicleID1[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID1[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
case 1:
{
if(PlayerVehicleID2[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID2[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
case 2:
{
if(PlayerVehicleID3[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID3[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
case 3:
{
if(PlayerVehicleID4[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID4[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
case 4:
{
if(PlayerVehicleID5[playerid] == 0)
{
SendClientMessage(playerid,COLOR_GREY," You dont own a vehicle at this slot.");
return 1;
}
if(TV[playerid] == 1)
{
TV[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
new Float: PX, Float: PY, Float: PZ;
GetVehiclePos(PlayerVehicleID5[playerid], PX, PY, PZ);
SetPlayerCheckpoint(playerid, PX, PY, PZ, 10.0);
new location[MAX_ZONE_NAME];
//Get2DZone(location,MAX_ZONE_NAME,PX,PY,PZ);
format(string,sizeof(string)," Your vehicle is at %s, It had been marked at your radar.",location);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
}
}
}
if(dialogid == 9001)
{
new i = TempCarID[playerid];
new string[256];
if(response)
{
if(PlayerInfo[playerid][pCash] >= CarInfo[i][CarPrice]) // 400k
{
if(PlayerInfo[playerid][PlayerVehicleModel1] == 0)
{
ResetPlayerVehicleEx(playerid, 1);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX1] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY1] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ1] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing1] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel1] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle1Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle1Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 1);
PutPlayerInVehicle(playerid,PlayerVehicleID1[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock from any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel1]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else if(PlayerInfo[playerid][PlayerVehicleModel2] == 0)
{
ResetPlayerVehicleEx(playerid, 2);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX2] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY2] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ2] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing2] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel2] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle2Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle2Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 2);
PutPlayerInVehicle(playerid,PlayerVehicleID2[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock From Any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel2]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else
{
if(PlayerInfo[playerid][pDonateRank] >= 1)
{
if(PlayerInfo[playerid][PlayerVehicleModel3] == 0)
{
ResetPlayerVehicleEx(playerid, 3);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX3] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY3] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ3] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing3] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel3] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle3Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle3Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 3);
PutPlayerInVehicle(playerid,PlayerVehicleID3[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock From Any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel3]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else if(PlayerInfo[playerid][pDonateRank] >= 2)
{
if(PlayerInfo[playerid][PlayerVehicleModel4] == 0)
{
ResetPlayerVehicleEx(playerid, 4);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX4] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY4] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ4] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing4] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel4] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle4Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle4Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 4);
PutPlayerInVehicle(playerid,PlayerVehicleID4[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock From Any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel4]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else if(PlayerInfo[playerid][pDonateRank] >= 3)
{
if(PlayerInfo[playerid][PlayerVehicleModel5] == 0)
{
ResetPlayerVehicleEx(playerid, 5);
PlayerInfo[playerid][pCash] -= CarInfo[i][CarPrice];
PlayerInfo[playerid][PlayerVehiclePosX5] = CarInfo[i][CarSpawnX];
PlayerInfo[playerid][PlayerVehiclePosY5] = CarInfo[i][CarSpawnY];
PlayerInfo[playerid][PlayerVehiclePosZ5] = CarInfo[i][CarSpawnZ];
PlayerInfo[playerid][PlayerVehicleFacing5] = CarInfo[i][CarSpawnF];
PlayerInfo[playerid][PlayerVehicleModel5] = CarInfo[i][CarModel];
PlayerInfo[playerid][pPlayerVehicle5Color] = CarInfo[i][CarColor];
PlayerInfo[playerid][pPlayerVehicle5Color2] = CarInfo[i][CarColor2];
OnPlayerSave(playerid);
RemovePlayerFromVehicle(playerid);
CreatePlayerVehicle(playerid, 5);
PutPlayerInVehicle(playerid,PlayerVehicleID5[playerid],0);
TempCarID[playerid] = 0;
format(string,sizeof(string)," Congratulations on your purchase of %s, Buy a lock From Any Locks Store.",vehName[PlayerInfo[playerid][PlayerVehicleModel5]-400]);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have the maximum car limit!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have the maximum car limit!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have the maximum car limit!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have the maximum car limit!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You don't have enough money!");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You have canceled the current dialog.");
RemovePlayerFromVehicle(playerid);
TempCarID[playerid] = 0;
return 1;
}

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)