for(new i=0;i<MAX_VEHICLES;i++) { if(GetPlayerVehicleID(playerid) != IceCreamJobVehicle[i]) { SCM(pid,COLOR_GREY, "You need to be in a icecream truck to use this command."); return 1; } }