Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:vehicles(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti logat!");
- if(PlayerInfo[playerid][pPcarkey] == 0 && PlayerInfo[playerid][pmotokey] == 0 && PlayerInfo[playerid][phelikey] == 0 && PlayerInfo[playerid][pprcarkey] == 0) return SendClientMessage(playerid,COLOR_WHITE,"{FFB870}You do not have a vehicle.");
- new sendername[25],name[100];
- GetPlayerName(playerid,sendername,sizeof(sendername));
- format(name,sizeof(name),"** %s's vehicles **",sendername);
- SCM(playerid,COLOR_TUTORIAL2,name);
- if(PlayerInfo[playerid][pPcarkey] != 0)
- {
- new string[356],carid = PlayerInfo[playerid][pPcarkey],locked[6],neon[10];
- if(CarInfo[carid][cLock] == 1)
- {
- locked = "Yes";
- }
- else
- {
- locked = "No";
- }
- if(CarInfo[carid][cNeon] == 0)
- {
- neon = "None";
- }
- else if(CarInfo[carid][cNeon] == 1)
- {
- neon = "Blue";
- }
- else if(CarInfo[carid][cNeon] == 2)
- {
- neon = "Red";
- }
- else if(CarInfo[carid][cNeon] == 3)
- {
- neon = "Green";
- }
- else if(CarInfo[carid][cNeon] == 4)
- {
- neon = "White";
- }
- else if(CarInfo[carid][cNeon] == 5)
- {
- neon = "Pink";
- }
- else if(CarInfo[carid][cNeon] == 6)
- {
- neon = "Yellow";
- }
- format(string,sizeof(string),"Vehicle 1: Model:[%s] Locked:[%s] KM:[%.2f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s] Neon:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]),neon);
- SCM(playerid,COLOR_GRAD1,string);
- }
- if(PlayerInfo[playerid][pmotokey] != 0)
- {
- new string[256],carid = PlayerInfo[playerid][pmotokey],locked[6];
- if(CarInfo[carid][cLock] == 1)
- {
- locked = "Yes";
- }
- else
- {
- locked = "No";
- }
- format(string,sizeof(string),"Vehicle 2: Model:[%s] Locked:[%s] KM:[%.2f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
- SCM(playerid,COLOR_GRAD2,string);
- }
- if(PlayerInfo[playerid][phelikey] != 0)
- {
- new string[256],carid = PlayerInfo[playerid][phelikey],locked[6];
- if(CarInfo[carid][cLock] == 1)
- {
- locked = "Yes";
- }
- else
- {
- locked = "No";
- }
- format(string,sizeof(string),"Vehicle 3: Model:[%s] Locked:[%s] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]));
- SCM(playerid,COLOR_GRAD3,string);
- }
- if(PlayerInfo[playerid][pprcarkey] != 0)
- {
- new string[356],carid = PlayerInfo[playerid][pprcarkey],locked[6],neon[10];
- if(CarInfo[carid][cLock] == 1)
- {
- locked = "Yes";
- }
- else
- {
- locked = "No";
- }
- if(CarInfo[carid][cNeon] == 0)
- {
- neon = "None";
- }
- else if(CarInfo[carid][cNeon] == 1)
- {
- neon = "Blue";
- }
- else if(CarInfo[carid][cNeon] == 2)
- {
- neon = "Red";
- }
- else if(CarInfo[carid][cNeon] == 3)
- {
- neon = "Green";
- }
- else if(CarInfo[carid][cNeon] == 4)
- {
- neon = "White";
- }
- else if(CarInfo[carid][cNeon] == 5)
- {
- neon = "Pink";
- }
- else if(CarInfo[carid][cNeon] == 6)
- {
- neon = "Yellow";
- }
- format(string,sizeof(string),"Vehicle 4: Model:[%s] Locked:[%s] KM:[%.2f] TD:[%d] Insurance:[%d] InsuranceP:[%d] Value:[%s] Neon:[%s]",CarInfo[carid][cDescription],locked,CarInfo[carid][cKM],CarInfo[carid][cTimed],CarInfo[carid][cInsurancecar],CarInfo[carid][cInscarprice],FormatNumber(CarInfo[carid][cValue]),neon);
- SCM(playerid,COLOR_GRAD4,string);
- }
- SCM(playerid,COLOR_TUTORIAL2,"__________________________");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement