09.01.2018, 15:43
I need to make a certain vehicle for a job, I have this code.
If you do not have a job, you can not use it, but if you are from another job that is not this one, it leaves you.
if(Vehicle_Job_1(vehicleid) && Info[playerid][pJob] <= 1)
{
new Float:XV, Float:YV, Float:ZV;
GetPlayerPos(playerid, XV, YV, ZV);
SetPlayerPos(playerid, XV, YV, ZV);
SendClientMessage(playerid, -1, "{ffa500}[INFO] {ffffff}You need to be Pizza Boy to use this vehicle!");
}
If you do not have a job, you can not use it, but if you are from another job that is not this one, it leaves you.
if(Vehicle_Job_1(vehicleid) && Info[playerid][pJob] <= 1)
{
new Float:XV, Float:YV, Float:ZV;
GetPlayerPos(playerid, XV, YV, ZV);
SetPlayerPos(playerid, XV, YV, ZV);
SendClientMessage(playerid, -1, "{ffa500}[INFO] {ffffff}You need to be Pizza Boy to use this vehicle!");
}