Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if(strcmp(x_job,"vehicle",true) == 0)
- {
- if(IsPlayerConnected(ofercar[playerid]))
- {
- if(ofercar[playerid] != id) return SCM(playerid,COLOR_WHITE,"{FFB870}This player has not offered you a car.");
- if(GetPlayerCash(playerid) >= carprice[playerid])
- {
- new vehh = GetPlayerVehicleID(id),tipmasina,myvehh = GetPlayerVehicleID(playerid),vehiculprimit;
- if(primesccar[playerid] == 1)
- {
- if(vehh != personalcar[0][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
- if(myvehh != personalcar[0][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
- tipmasina = 1;
- }
- if(primesccar[playerid] == 2)
- {
- if(vehh != personalcar[1][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
- if(myvehh != personalcar[1][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
- tipmasina = 2;
- }
- if(primesccar[playerid] == 3)
- {
- if(vehh != personalcar[2][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
- if(myvehh != personalcar[2][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
- tipmasina = 3;
- }
- if(primesccar[playerid] == 4)
- {
- if(vehh != personalcar[3][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
- if(myvehh != personalcar[3][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
- tipmasina = 4;
- }
- if(primesccar[playerid] == 5)
- {
- if(vehh != personalcar[4][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
- if(myvehh != personalcar[4][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
- tipmasina = 5;
- }
- if(primesccar[playerid] == 6)
- {
- if(vehh != personalcar[5][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Vehicle seller needs to be at his selling car.");
- if(myvehh != personalcar[5][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You need to be in the offered vehicle.");
- tipmasina = 6;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement